Struct hecs_schedule::CommandBuffer
source · [−]pub struct CommandBuffer { /* private fields */ }
Expand description
Extends the built in hecs::CommandBuffer.
Allows for deferred modifications to the world, spawn, insert, remove, despawn, or custom closures.
It is possible to insert a commandbuffer into another commandbuffer.
Implementations
Inserts components into an already existing or reserved entity
Inserts a single component into an already existing or reserved entity
Spawns a new entity with components. If the entity ID is desired, consider reserving an entity and then inserting
Remove a single component from the world
Trait Implementations
Returns the “default value” for a type. Read more