Skip to main content
Namespace: OpenTD.Results.Dataset
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 ← DataSubtype

Implements

IEquatable<DataSubtype>

Inherited Members

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

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

string

DataType

The DataTypes enum (node, lump, etc.) associated with this subtype.

Property Value

DataTypes

DataTypeFamily

The DataTypeFamilies enum (thermal, fluid, other) associated with this subtype.

Property Value

DataTypeFamilies

Description

A short description of this subtype, e.g. “lump temperature”.

Property Value

string

Dimension

The physical dimension of this subtype, e.g., temperature.

Property Value

UnitsData.UnitsType

FluidConstituent

For multispecies subtypes, this is the fluid constituent. For non-multispecies subtypes, this should be set to NOT_SET.

Property Value

FluidConstituents

IsDimensionalOnlyIfPositive

Determines whether this subtype behaves dimensionally only when positive. (Some Sinda variables are dimensional if positive and just flags if negative.)

Property Value

bool

IsUDFA

Determines whether this subtype describes a UDFA.

Property Value

bool

SindaDesignator

The short string used by Sinda to identify this subtype, combined with a fluid constituent letter for multispecies subtypes.

Property Value

string

StandardDataSubtype

Gets the StandardDataSubtypes enum associated with this subtype.

Property Value

StandardDataSubtypes

SupportedStandardDataSubtypes

Property Value

IEnumerable<StandardDataSubtypes>

ValueType

The type of value that this subtype represents.

Property Value

DataSubtype.ValueTypes

Methods

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 the other 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

FullStandardDataSubtype

GetHashCode()

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

bool

implicit operator DataSubtype(StandardDataSubtypes)

Parameters

x StandardDataSubtypes

Returns

DataSubtype

implicit operator DataSubtype(FullStandardDataSubtype)

Parameters

x FullStandardDataSubtype

Returns

DataSubtype

operator !=(DataSubtype, DataSubtype)

Parameters

x1 DataSubtype x2 DataSubtype

Returns

bool

See Also

StandardDataSubtypes, FullStandardDataSubtype