Struct EntityId
public struct EntityId : IEquatable<EntityId>, IComparable<EntityId>
- Implements
- Inherited Members
Constructors
EntityId(int)
public EntityId(int id)
Parameters
idint
Fields
InstanceID
public int InstanceID
Field Value
Properties
None
public static EntityId None { get; }
Property Value
Methods
CompareTo(EntityId)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(EntityId entityId)
Parameters
entityIdEntityId
Returns
- int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes otherin the sort order.Zero This instance occurs in the same position in the sort order as other.Greater than zero This instance follows otherin the sort order.
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.
Equals(EntityId)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(EntityId other)
Parameters
otherEntityIdAn object to compare with this object.
Returns
FromULong(ulong)
public static EntityId FromULong(ulong val)
Parameters
valulong
Returns
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 ==(EntityId, EntityId)
public static bool operator ==(EntityId left, EntityId right)
Parameters
Returns
implicit operator int(EntityId)
public static implicit operator int(EntityId entityId)
Parameters
entityIdEntityId
Returns
operator !=(EntityId, EntityId)
public static bool operator !=(EntityId left, EntityId right)