Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.Dimension.Dimensional< T > Struct Template Reference

Last update: 16.07.2025

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. More...

Inheritance diagram for OpenTD.Dimension.Dimensional< T >:
OpenTD.Dimension.IGetSetSI

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]

OpenTD.Dimension.Dimensional< T >.Dimensional ( double x)
inline

◆ Dimensional() [2/2]

OpenTD.Dimension.Dimensional< T >.Dimensional ( double x,
UnitsData inputUnits )
inline

◆ GetValueSI() [1/2]

double OpenTD.Dimension.Dimensional< T >.GetValueSI ( )
inline

◆ GetValueSI() [2/2]

double IGetSetSI. OpenTD.Dimension.Dimensional< T >.GetValueSI ( )
inline

◆ operator Dimensional< T >()

static implicit OpenTD.Dimension.Dimensional< T >.operator Dimensional< T > ( double x)
inlinestatic

◆ operator double()

static implicit OpenTD.Dimension.Dimensional< T >.operator double ( Dimensional< T > x)
inlinestatic

◆ SetValueSI()

void IGetSetSI. OpenTD.Dimension.Dimensional< T >.SetValueSI ( double value)
inline

◆ ToString()

override string OpenTD.Dimension.Dimensional< T >.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

Connect with Ansys