OpenTD.Results.Dataset.Topology.SindaName Class Reference
Last update: 16.07.2025Holds the Submodel/Id pair uniquely identifying model objects within their respective type. More...
Inheritance diagram for OpenTD.Results.Dataset.Topology.SindaName:

Public Member Functions | |
| SindaName (string submodel, long id) | |
| Initializes a new instance of the SindaName class for a given submodel and id. | |
| override string | ToString () |
| Converts to string. | |
| bool | Equals (SindaName other) |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
Static Public Member Functions | |
| static SindaName | Parse (string sindaNameKey) |
| Parses the specified SindaName key. | |
| static bool | TryParse (string sindaNameKey, out SindaName sindaName) |
| Attempts to parse the specified sinda name key. | |
Properties | |
| string | Submodel [get] |
| Gets the submodel. | |
| long | Id [get] |
| Gets the id. | |
| string | Key [get] |
| Gets the string key for this SindaName (of the form 'Submodel.Id'). | |
Detailed Description
Holds the Submodel/Id pair uniquely identifying model objects within their respective type.
Constructor & Destructor Documentation
◆ SindaName()
|
inline |
Initializes a new instance of the SindaName class for a given submodel and id.
- Parameters
-
submodel The submodel. Case-insensitive. id The identifier.
Member Function Documentation
◆ Equals() [1/2]
| override bool OpenTD.Results.Dataset.Topology.SindaName.Equals | ( | object | obj | ) |
◆ Equals() [2/2]
| bool OpenTD.Results.Dataset.Topology.SindaName.Equals | ( | SindaName | other | ) |
◆ GetHashCode()
| override int OpenTD.Results.Dataset.Topology.SindaName.GetHashCode | ( | ) |
◆ Parse()
|
inlinestatic |
Parses the specified SindaName key.
- Parameters
-
sindaNameKey The sinda name key.
- Returns
- A SindaName.
- Exceptions
-
OpenTDException Unable to split into two parts by '.'. ArgumentNullException sindaNameKey is null. ArgumentException Id portion is not parseable as an Int64. OverflowException Id portion is less than MinValue or greater than MaxValue for Int64 type.
◆ ToString()
| override string OpenTD.Results.Dataset.Topology.SindaName.ToString | ( | ) |
Converts to string.
- Returns
- A System.String that represents this instance in 'Submodel.Id' form.
◆ TryParse()
|
inlinestatic |
Attempts to parse the specified sinda name key.
- Parameters
-
sindaNameKey The sinda name key. sindaName The parsed SindaName when successful.
- Returns
- True if the parse was successful and false otherwise.
- Exceptions
-
ArgumentNullException sindaNameKey is null.
Property Documentation
◆ Id
|
get |
Gets the id.
◆ Key
|
get |
Gets the string key for this SindaName (of the form 'Submodel.Id').
◆ Submodel
|
get |
Gets the submodel.
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD.Results/Dataset/Topology/SindaName.cs