Assembly: OpenTD.dll UnitsDefData is used to create units with arbitrary combinations of dimensions.
Inheritance
object ← UnitsDefDataImplements
IEquatable<UnitsDefData>Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()Constructors
UnitsDefData()
Initializes a new instance of the UnitsDefData class.UnitsDefData(UnitsDefData)
Copy constructor.Parameters
source UnitsDefData
Properties
multiUnitsTypes
Property Value
List<int>multiUnitsUnits
Property Value
List<int>numer
Property Value
List<bool>Methods
Equals(UnitsDefData)
Indicates whether the current object is equal to another object of the same type.Parameters
x UnitsDefData
Returns
bool true if the current object is equal to theother parameter; otherwise, false.
Equals(object)
Determines whether the specified object is equal to the current object.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.Returns
int A hash code for the current object.Operators
operator ==(UnitsDefData, UnitsDefData)
Parameters
x1 UnitsDefData
x2 UnitsDefData
Returns
booloperator !=(UnitsDefData, UnitsDefData)
Parameters
x1 UnitsDefData
x2 UnitsDefData