Skip to main content
Namespace: OpenTD
Assembly: OpenTD.dll
UnitsDefData is used to create units with arbitrary combinations of dimensions.

Inheritance

object ← UnitsDefData

Implements

IEquatable<UnitsDefData>

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 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 the other 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

bool

operator !=(UnitsDefData, UnitsDefData)

Parameters

x1 UnitsDefData x2 UnitsDefData

Returns

bool