Class ExpressionData
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
Data describing a TD expression.
[DataContract]
public class ExpressionData
Inheritance
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
ExpressionData()
Initializes a new instance of the
public ExpressionData()
ExpressionData(string)
Initializes a new instance of the
public ExpressionData(string expression)
Parameters
expression string
The expression.
ExpressionData(string, UnitsData)
Initializes a new instance of the
public ExpressionData(string expression, UnitsData expressionUnits)
Parameters
expression string
The expression.
expressionUnits UnitsData
The expression units.
ExpressionData(ExpressionData)
public ExpressionData(ExpressionData x)
Parameters
Properties
Comment
[DataMember]
public string Comment { get; set; }
Property Value
DisableWarnings
[DataMember]
public bool DisableWarnings { get; set; }
Property Value
ExpressionInSindaUnits
[DataMember]
public bool ExpressionInSindaUnits { get; set; }
Property Value
OutputToSinda
[DataMember]
public bool OutputToSinda { get; set; }
Property Value
Value
[DataMember]
public string Value { get; set; }
Property Value
units
ExpressionDatas contain their own unit system, independent of the dwg units or OpenTD WorkingUnits. This unit system defaults to the WorkingUnits but can be changed.
[DataMember]
public UnitsData units { get; set; }
Property Value
unitsType
[DataMember]
public UnitsData.UnitsType unitsType { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
Operators
implicit operator string(ExpressionData)
public static implicit operator string(ExpressionData x)