Skip to main content

OpenTD reference 2026 R1

Class ItemIdentifier

Last update: 09.03.2026

Namespace: OpenTD.Results.Dataset
Assembly: OpenTD.Results.dll

A class to generalize "items" that are associated with data, e.g., entities (nodes, lumps, etc.), registers, record numbers, etc.

public class ItemIdentifier

Inheritance

object ← ItemIdentifier

Inherited Members

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

Constructors

ItemIdentifier(Types, string, long, long, string)

public ItemIdentifier(ItemIdentifier.Types type, string submodel, long id, long recordNum, string registerName)

Parameters

type ItemIdentifier.Types

submodel string

id long

recordNum long

registerName string

ItemIdentifier(string)

public ItemIdentifier(string sindaName)

Parameters

sindaName string

ItemIdentifier(string, long)

public ItemIdentifier(string submodel, long id)

Parameters

submodel string

id long

Properties

AutoCommenter

protected AutoCommenter AutoCommenter { get; set; }

Property Value

AutoCommenter

Comment

public string Comment { get; set; }

Property Value

string

Id

public long Id { get; }

Property Value

long

InternalSuggestedComment

public string InternalSuggestedComment { get; set; }

Property Value

string

RecordNum

public long RecordNum { get; }

Property Value

long

RegisterName

public string RegisterName { get; }

Property Value

string

Submodel

public string Submodel { get; }

Property Value

string

Type

public ItemIdentifier.Types Type { get; }

Property Value

ItemIdentifier.Types

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

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.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetSelfSuggestedComment()

protected virtual string GetSelfSuggestedComment()

Returns

string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator ==(ItemIdentifier, ItemIdentifier)

public static bool operator ==(ItemIdentifier x1, ItemIdentifier x2)

Parameters

x1 ItemIdentifier

x2 ItemIdentifier

Returns

bool

operator !=(ItemIdentifier, ItemIdentifier)

public static bool operator !=(ItemIdentifier x1, ItemIdentifier x2)

Parameters

x1 ItemIdentifier

x2 ItemIdentifier

Returns

bool

Connect with Ansys