Class ItemIdentifier
Last update: 09.03.2026Namespace: 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
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
Id
public long Id { get; }
Property Value
InternalSuggestedComment
public string InternalSuggestedComment { get; set; }
Property Value
RecordNum
public long RecordNum { get; }
Property Value
RegisterName
public string RegisterName { get; }
Property Value
Submodel
public string Submodel { get; }
Property Value
Type
public ItemIdentifier.Types Type { get; }
Property Value
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
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
A hash code for the current object.
GetSelfSuggestedComment()
protected virtual string GetSelfSuggestedComment()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
Operators
operator ==(ItemIdentifier, ItemIdentifier)
public static bool operator ==(ItemIdentifier x1, ItemIdentifier x2)
Parameters
Returns
operator !=(ItemIdentifier, ItemIdentifier)
public static bool operator !=(ItemIdentifier x1, ItemIdentifier x2)