OpenTD.Dimension.Dimensional< T > Struct Template Reference
Last update: 16.07.2025Dimensionals represent dimensional quantities, like endTime or initialTemperature. When set or get, dimensional values reflect the current Units.WorkingUnits system. For example, if you set WorkingUnits.temp to C, then set a Dimensional{Temperature} to 0, then set WorkingUnits.temp to F, the Dimensional would now return 32. Dimensionals implicitly convert to/from doubles. More...

Public Member Functions | |
| Dimensional (double x) | |
| Dimensional (double x, UnitsData inputUnits) | |
| double | GetValueSI () |
| override string | ToString () |
| double IGetSetSI. | GetValueSI () |
| void IGetSetSI. | SetValueSI (double value) |
Static Public Member Functions | |
| static implicit | operator Dimensional< T > (double x) |
| static implicit | operator double (Dimensional< T > x) |
Detailed Description
Dimensionals represent dimensional quantities, like endTime or initialTemperature. When set or get, dimensional values reflect the current Units.WorkingUnits system. For example, if you set WorkingUnits.temp to C, then set a Dimensional{Temperature} to 0, then set WorkingUnits.temp to F, the Dimensional would now return 32. Dimensionals implicitly convert to/from doubles.
- Type Constraints
-
T : IDimension T : new()
Member Function Documentation
◆ Dimensional() [1/2]
|
inline |
◆ Dimensional() [2/2]
|
inline |
◆ GetValueSI() [1/2]
|
inline |
Implements OpenTD.Dimension.IGetSetSI.
◆ GetValueSI() [2/2]
|
inline |
Implements OpenTD.Dimension.IGetSetSI.
◆ operator Dimensional< T >()
|
inlinestatic |
◆ operator double()
|
inlinestatic |
◆ SetValueSI()
|
inline |
Implements OpenTD.Dimension.IGetSetSI.
◆ ToString()
|
inline |
The documentation for this struct was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/Dimension/Dimensional.cs