Skip to main content
Namespace: OpenTD.UserPreferences
Assembly: OpenTD.dll
Use to set the global units preferences.

Inheritance

object ← TdConnected ← Preferences ← UnitsPreferences

Implements

IUpdatable

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

UnitsPreferences()

Do not use.

UnitsPreferences(ThermalDesktop)

Parameters

_td ThermalDesktop

Properties

DoNotScaleModelOnNextUpdate

Property Value

bool

EngUnitsPressurePSIAorGaugeIndex

Property Value

int

EngUnitsTemperatureIndex

Property Value

int

SiUnitsTemperatureIndex

Property Value

int

Units

Property Value

UnitsData

UnitsThermalOnlyInterfaceOrENG_SI_controlled

Property Value

int

calculationOutputUnits

Property Value

int

Methods

Update()

Updates the TD entity with the latest client data.

UpdateFromTD()

Updates the client-side instance with the latest data from the TD entity.