Under the hood an entity is an index and a generation number combined
using bit twiddling. The index is recycled and used by internal data
structures to keep arrays packed. The generation is incremented every time an
entity is destroyed and makes it possible to differentiate "current" entities
from old destroyed ones even when they share the same index.
An opaque identifier, represented as a number.
Under the hood an entity is an index and a generation number combined using bit twiddling. The index is recycled and used by internal data structures to keep arrays packed. The generation is incremented every time an entity is destroyed and makes it possible to differentiate "current" entities from old destroyed ones even when they share the same index.