Table of Contents

Struct EntityId

Namespace
nadena.dev.ndmf
public struct EntityId : IEquatable<EntityId>, IComparable<EntityId>
Implements
Inherited Members

Constructors

EntityId(int)

public EntityId(int id)

Parameters

id int

Fields

InstanceID

public int InstanceID

Field Value

int

Properties

None

public static EntityId None { get; }

Property Value

EntityId

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

entityId EntityId

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 other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

other EntityId

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

FromULong(ulong)

public static EntityId FromULong(ulong val)

Parameters

val ulong

Returns

EntityId

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

left EntityId
right EntityId

Returns

bool

implicit operator int(EntityId)

public static implicit operator int(EntityId entityId)

Parameters

entityId EntityId

Returns

int

operator !=(EntityId, EntityId)

public static bool operator !=(EntityId left, EntityId right)

Parameters

left EntityId
right EntityId

Returns

bool