ID

An id encapsulates an index (unique ulong in an entity manager) and a tag (to check if the entity is in sync (valid) with the manager).

Constructors

this
this(ulong id)

Construct an id from a 64-bit integer: A concatenated 32-bit index and 32-bit tag.

this
this(uint index, uint tag)

Construct an id from a 32-bit index and a 32-bit tag.

Members

Functions

index
inout(uint) index()

Return the index of the ID.

opCmp
int opCmp(ID other)

Comparison operators (check for greater / less than).

opEquals
bool opEquals(ID other)

Equals operator (check for equality).

tag
inout(uint) tag()

Return the tag of the ID.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

INVALID
ID INVALID;

An invalid id, used for invalidating entities.

Meta