Struct ArbiterKey
Represents an ordered pair of identifiers used to look up an Arbiter.
public readonly struct ArbiterKey : IEquatable<ArbiterKey>
- Implements
- Inherited Members
Remarks
The order of key1 and key2 matters for equality comparison.
For arbiters created by the physics engine, key1 is always less than key2.
Constructors
ArbiterKey(ulong, ulong)
Represents an ordered pair of identifiers used to look up an Arbiter.
public ArbiterKey(ulong key1, ulong key2)
Parameters
key1ulongThe first identifier (typically the smaller shape ID).
key2ulongThe second identifier (typically the larger shape ID).
Remarks
The order of key1 and key2 matters for equality comparison.
For arbiters created by the physics engine, key1 is always less than key2.
Fields
Key1
The first identifier in the pair.
public readonly ulong Key1
Field Value
Key2
The second identifier in the pair.
public readonly ulong Key2
Field Value
Methods
Equals(ArbiterKey)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ArbiterKey other)
Parameters
otherArbiterKeyAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(ArbiterKey, ArbiterKey)
public static bool operator ==(ArbiterKey left, ArbiterKey right)
Parameters
leftArbiterKeyrightArbiterKey
Returns
operator !=(ArbiterKey, ArbiterKey)
public static bool operator !=(ArbiterKey left, ArbiterKey right)
Parameters
leftArbiterKeyrightArbiterKey