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

Creates a new empty commandbuffer

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

Despawn an entity from the world

Remove components from entity

Remove a single component from the world

Applies the recorded commands on the world

Record a custom command modifying the world

Drop all recorded commands

Trait Implementations

Returns the “default value” for a type. Read more

Executes on the world

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.