Quantum entity reference. More...
Inherits IEquatable< EntityRef >.
Public Attributes | |
int | Index |
Entity index. More... | |
bool | IsValid => Raw != 0 |
Returns false if this entity is equal to EntityRef.None More... | |
int | Version |
Entity version is incremented during the entity life cycle when the entity slot is reused. More... | |
Properties | |
static EntityRef | None [get] |
The EntityRef value defining a non-existent Entity. More... | |
Quantum entity reference.
Quantum implements a sparse-set ECS model (similar to enTT). This means entities are just references to collections of components.
Most important advantages: memory consumption is proportional to instantiated entities + ability to add and remove components dynamically.
bool Quantum.EntityRef.IsValid => Raw != 0 |
Returns false if this entity is equal to EntityRef.None
int Quantum.EntityRef.Index |
Entity index.
int Quantum.EntityRef.Version |
Entity version is incremented during the entity life cycle when the entity slot is reused.
|
staticget |
The EntityRef value defining a non-existent Entity.