35 std::vector<Entity> _destroyQueue;
36 std::vector<std::function<void()>> _bindQueue;
37 std::vector<std::function<void()>> _unbindQueue;
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
void defer_bind(Entity e, T component)
Queues a bind_immediate command lambda.
Definition Nexus.hpp:536
void defer_unbind(Entity e)
Queues an unbind_immediate command lambda.
Definition Nexus.hpp:545
CommandBuffer(Nexus &nexus)
Construct a new Command Buffer object with the Nexus that it will apply its queued operations to.
Definition CommandBuffer.cpp:8
void defer_destroy(Entity e)
Queues an Entity for destruction.
Definition CommandBuffer.cpp:11
void flush()
Goes through all the defer queues and actually applies the operations to the associated Nexus.
Definition CommandBuffer.cpp:17
the Nexus is the brain of the ECS world. It is the object the user will use to interact with everythi...
Definition Nexus.hpp:84