Class UnitsDefData
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
UnitsDefData is used to create units with arbitrary combinations of dimensions.
[MessagePackObject(true)]
public class UnitsDefData : IEquatable<UnitsDefData>
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
UnitsDefData()
Initializes a new instance of the
public UnitsDefData()
UnitsDefData(UnitsDefData)
Copy constructor.
public UnitsDefData(UnitsDefData source)
Parameters
source UnitsDefData
Properties
multiUnitsTypes
public List<int> multiUnitsTypes { get; set; }
Property Value
multiUnitsUnits
public List<int> multiUnitsUnits { get; set; }
Property Value
numer
public List<bool> numer { get; set; }
Property Value
Methods
Equals(UnitsDefData)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(UnitsDefData x)
Parameters
Returns
true if the current object is equal to the other parameter; otherwise, false.
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.
Operators
operator ==(UnitsDefData, UnitsDefData)
public static bool operator ==(UnitsDefData x1, UnitsDefData x2)
Parameters
x1 UnitsDefData
x2 UnitsDefData
Returns
operator !=(UnitsDefData, UnitsDefData)
public static bool operator !=(UnitsDefData x1, UnitsDefData x2)
Parameters
x1 UnitsDefData
x2 UnitsDefData