Expand description
Contains the definition of the EntityCommand trait,
as well as the blanket implementation of the trait for closures.
It also contains functions that return closures for use with
EntityCommands.
Enums§
- Entity
Command Error - An error that occurs when running an
EntityCommandon a specific entity.
Traits§
- Entity
Command - A command which gets executed for a given
Entity.
Functions§
- clear
- An
EntityCommandthat removes all components from an entity. - clone_
components - An
EntityCommandthat clones the specified components of an entity and inserts them into another entity. - clone_
with_ opt_ in - An
EntityCommandthat clones parts of an entity onto another entity, configured throughEntityClonerBuilder. - clone_
with_ opt_ out - An
EntityCommandthat clones parts of an entity onto another entity, configured throughEntityClonerBuilder. - despawn
- An
EntityCommandthat despawns an entity. - insert
- An
EntityCommandthat adds the components in aBundleto an entity. - insert_
by_ ⚠id - An
EntityCommandthat adds a dynamic component to an entity. - insert_
from_ world - An
EntityCommandthat adds a component to an entity using the component’sFromWorldimplementation. - insert_
with - An
EntityCommandthat adds a component to an entity using some function that returns the component. - log_
components - An
EntityCommandthat logs the components of an entity. - move_
components - An
EntityCommandmoves the specified components of this entity into another entity. - observe
- An
EntityCommandthat creates anObserverwatching for anEntityEventof typeEwhoseEntityEvent::event_targettargets this entity. - remove
- An
EntityCommandthat removes the components in aBundlefrom an entity. - remove_
by_ id - An
EntityCommandthat removes a dynamic component from an entity. - remove_
with_ requires - An
EntityCommandthat removes the components in aBundlefrom an entity, as well as the required components for each component removed. - retain
- An
EntityCommandthat removes all components from an entity, except for those in the givenBundle.