Skip to main content
Namespace: OpenTD.Results.Dataset
Assembly: OpenTD.Results.dll
Identifies a data subtype (T, TL, PL, etc.) — with an optional fluid constituent (A, B, W, etc.) — associated with an “item” (an entity (node, lump, etc.), register, record number, etc.), e.g., MAIN.T6, FLOW.PL100, FLOW.GTA10, MYREGISTER DIMENSIONLESS. Note: the Units member is only applicable to registers. If null, default units will be assumed.

Inheritance

object ← DataItemIdentifier

Inherited Members

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

Constructors

DataItemIdentifier(ItemIdentifier, DataSubtype, UnitsData)

Use this ctor to combine an ItemIdentifier (MAIN.6, MYREGISTER) with a DataSubtype (T, DIMENSIONLESS) to create a DataItemIdentifier (MAIN.T6, MYREGISTER DIMENSIONLESS).

Parameters

itemIdentifier ItemIdentifier subtype DataSubtype units UnitsData

Exceptions

OpenTDException

DataItemIdentifier(string, UnitsData, IDataset)

Constructs a DataItemIdentifier from a string like “MAIN.T6” or “MY_REGISTER2”. Registers are assumed dimensionless unless registerUnits parameter is set. Use “MY_UDFA.MAIN.6” to refer to an entity-length UDFA. Use “MY_UDFA.4” to refer to one array in a user-length UDFA. UDFAdataset must be set to correctly determine the characteristics of any UDFA’s. (Otherwise the parser doesn’t know if MY_UDFA.FLOW.3 is for lumps, paths, etc.)

Parameters

sindaName string registerUnits UnitsData UDFAdataset IDataset

DataItemIdentifier(string, UnitsData, IEnumerable<string>, IEnumerable<string>)

Deprecated. Do not use this DataItemIdentifier ctor.

Parameters

sindaName string units UnitsData thermalSubs IEnumerable<string> fluidSubs IEnumerable<string>

Properties

ItemIdentifier

Property Value

ItemIdentifier

Subtype

Property Value

DataSubtype

Units

Property Value

UnitsData

Methods

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.

GetHashCode()

Serves as the default hash function.

Returns

int A hash code for the current object.

ToString()

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Operators

operator ==(DataItemIdentifier, DataItemIdentifier)

Parameters

x1 DataItemIdentifier x2 DataItemIdentifier

Returns

bool

operator !=(DataItemIdentifier, DataItemIdentifier)

Parameters

x1 DataItemIdentifier x2 DataItemIdentifier

Returns

bool