Assembly: OpenTD.Results.dll Represents one data subtype, e.g., TL (lump temperature). If using C#, you can supply a StandardDataSubtype anywhere a DataSubtype is expected and it will be implicity converted to a DataSubtype. This also works with a FullStandardDataSubtype.
Inheritance
object ← DataSubtypeImplements
IEquatable<DataSubtype>Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()Constructors
DataSubtype(StandardDataSubtypes)
Parameters
stdDataSubtype StandardDataSubtypes
DataSubtype(StandardDataSubtypes, FluidConstituents)
Parameters
stdDataSubtype StandardDataSubtypes
fluidConstituent FluidConstituents
DataSubtype(FullStandardDataSubtype)
Parameters
stdDataSubtypeWithFluid FullStandardDataSubtype
DataSubtype(UnitsType, bool, string, string, DataTypes, FluidConstituents)
Parameters
dimension UnitsData.UnitsType
isDimensionalOnlyIfPositive bool
description string
baseSindaDesignator string
dataType DataTypes
fluidConstituent FluidConstituents
DataSubtype(string, DataTypes, ValueTypes)
Parameters
udfaName string
dataType DataTypes
valueType DataSubtype.ValueTypes
DataSubtype(UnitsType, string, DataTypes)
Parameters
dimension UnitsData.UnitsType
description string
dataType DataTypes
DataSubtype(DataSubtype, FluidConstituents)
Parameters
source DataSubtype
fluidConstituent FluidConstituents
Properties
BaseSindaDesignator
The short string used by Sinda to identify this subtype, e.g., “TL”. Stored and returned as all uppercase.Property Value
stringDataType
The DataTypes enum (node, lump, etc.) associated with this subtype.Property Value
DataTypesDataTypeFamily
The DataTypeFamilies enum (thermal, fluid, other) associated with this subtype.Property Value
DataTypeFamiliesDescription
A short description of this subtype, e.g. “lump temperature”.Property Value
stringDimension
The physical dimension of this subtype, e.g., temperature.Property Value
UnitsData.UnitsTypeFluidConstituent
For multispecies subtypes, this is the fluid constituent. For non-multispecies subtypes, this should be set to NOT_SET.Property Value
FluidConstituentsIsDimensionalOnlyIfPositive
Determines whether this subtype behaves dimensionally only when positive. (Some Sinda variables are dimensional if positive and just flags if negative.)Property Value
boolIsUDFA
Determines whether this subtype describes a UDFA.Property Value
boolSindaDesignator
The short string used by Sinda to identify this subtype, combined with a fluid constituent letter for multispecies subtypes.Property Value
stringStandardDataSubtype
Gets the StandardDataSubtypes enum associated with this subtype.Property Value
StandardDataSubtypesSupportedStandardDataSubtypes
Property Value
IEnumerable<StandardDataSubtypes>ValueType
The type of value that this subtype represents.Property Value
DataSubtype.ValueTypesMethods
Equals(DataSubtype)
Indicates whether the current object is equal to another object of the same type.Parameters
x DataSubtype
Returns
bool true if the current object is equal to theother parameter; otherwise, false.
Equals(object)
Determines whether the specified object is equal to the current object.Parameters
obj object
The object to compare with the current object.
Returns
bool true if the specified object is equal to the current object; otherwise, false.GetFullStandardDataSubtype()
Gets the FullStandardDataSubtype associated with this subtype.Returns
FullStandardDataSubtypeGetHashCode()
Serves as the default hash function.Returns
int A hash code for the current object.SetFrom(DataSubtype)
Parameters
x DataSubtype
ToString()
Returns a string that represents the current object.Returns
string A string that represents the current object.Operators
operator ==(DataSubtype, DataSubtype)
Parameters
x1 DataSubtype
x2 DataSubtype
Returns
boolimplicit operator DataSubtype(StandardDataSubtypes)
Parameters
x StandardDataSubtypes
Returns
DataSubtypeimplicit operator DataSubtype(FullStandardDataSubtype)
Parameters
x FullStandardDataSubtype
Returns
DataSubtypeoperator !=(DataSubtype, DataSubtype)
Parameters
x1 DataSubtype
x2 DataSubtype