Skip to main content

OpenTD .NET8 reference 2025 R2

OpenTD.ExpressionData Class Reference

Last update: 16.07.2025

Data describing a TD expression. More...

Inheritance diagram for OpenTD.ExpressionData:
OpenTD.ITdDerived

Public Member Functions

 ExpressionData ()
 Initializes a new instance of the ExpressionData class.
 
 ExpressionData (string expression)
 Initializes a new instance of the ExpressionData class.
 
 ExpressionData (string expression, UnitsData expressionUnits)
 Initializes a new instance of the ExpressionData class.
 
 ExpressionData (ExpressionData x)
 
override string ToString ()
 

Static Public Member Functions

static implicit operator string (ExpressionData x)
 

Properties

UnitsData.UnitsType unitsType [get, set]
 
UnitsData units [get, set]
 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.
 
bool OutputToSinda [get, set]
 
bool ExpressionInSindaUnits [get, set]
 
bool DisableWarnings [get, set]
 
string Comment [get, set]
 
string Value [get, set]
 

Detailed Description

Data describing a TD expression.

Constructor & Destructor Documentation

◆ ExpressionData() [1/4]

OpenTD.ExpressionData.ExpressionData ( )
inline

Initializes a new instance of the ExpressionData class.

◆ ExpressionData() [2/4]

OpenTD.ExpressionData.ExpressionData ( string expression)
inline

Initializes a new instance of the ExpressionData class.

Parameters
expressionThe expression.

◆ ExpressionData() [3/4]

OpenTD.ExpressionData.ExpressionData ( string expression,
UnitsData expressionUnits )
inline

Initializes a new instance of the ExpressionData class.

Parameters
expressionThe expression.
expressionUnitsThe expression units.

◆ ExpressionData() [4/4]

OpenTD.ExpressionData.ExpressionData ( ExpressionData x)
inline

Member Function Documentation

◆ operator string()

static implicit OpenTD.ExpressionData.operator string ( ExpressionData x)
inlinestatic

◆ ToString()

override string OpenTD.ExpressionData.ToString ( )
inline

Property Documentation

◆ Comment

string OpenTD.ExpressionData.Comment
getset

◆ DisableWarnings

bool OpenTD.ExpressionData.DisableWarnings
getset

◆ ExpressionInSindaUnits

bool OpenTD.ExpressionData.ExpressionInSindaUnits
getset

◆ OutputToSinda

bool OpenTD.ExpressionData.OutputToSinda
getset

◆ units

UnitsData OpenTD.ExpressionData.units
getset

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.

◆ unitsType

UnitsData.UnitsType OpenTD.ExpressionData.unitsType
getset

◆ Value

string OpenTD.ExpressionData.Value
getset

The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/ExpressionData.cs

Connect with Ansys