Defines the Entity alias and the free functions used to pack and unpack it.
uint32_t Entity
A packed identifier: 20 bits of index, 12 bits of generation.
Definition Entity.hpp:20
Type-erased interface for SparseSet<T>.
Definition SparseSetBase.hpp:21
virtual void swap_entities(Entity e1, Entity e2)=0
Swaps e1 with e2 in _dense, _entities, and _sparse.
virtual size_t get_size() const =0
return the number of Entities currently stored in this pool
virtual const std::vector< Entity > & get_entities() const =0
returns the dense array of entities currently stored in this pool
virtual size_t get_index(Entity e) const =0
Returns the index of the specified Entity.
virtual bool has(Entity e) const =0
checks whether an Entity currently has a component stored in this pool
virtual void remove(Entity e)=0
removes an Entity's component from this pool, if it is currently present