Class SubmodelNameData
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
A submodel name. Implicitly converts to/from string. Automatically converts to uppercase.
[MessagePackObject(true)]
public class SubmodelNameData
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
SubmodelNameData()
Initializes a new instance of the
public SubmodelNameData()
SubmodelNameData(string)
Initializes a new instance of the
public SubmodelNameData(string name)
Parameters
name string
The submodel name.
Properties
Name
public string Name { get; set; }
Property Value
Methods
Check()
public void Check()
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.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
Operators
operator ==(SubmodelNameData, SubmodelNameData)
public static bool operator ==(SubmodelNameData first, SubmodelNameData second)
Parameters
first SubmodelNameData
second SubmodelNameData
Returns
implicit operator SubmodelNameData(string)
public static implicit operator SubmodelNameData(string submodelName)
Parameters
submodelName string
Returns
implicit operator string(SubmodelNameData)
public static implicit operator string(SubmodelNameData s)
Parameters
Returns
operator !=(SubmodelNameData, SubmodelNameData)
public static bool operator !=(SubmodelNameData first, SubmodelNameData second)
Parameters
first SubmodelNameData
second SubmodelNameData