Module command

Source
Expand description

Contains the definition of the Command trait, as well as the blanket implementation of the trait for closures.

It also contains functions that return closures for use with Commands.

Traits§

Command
A World mutation.

Functions§

init_resource
A Command that inserts a Resource into the world using a value created with the FromWorld trait.
insert_batch
A Command that consumes an iterator to add a series of Bundles to a set of entities.
insert_resource
A Command that inserts a Resource into the world.
remove_resource
A Command that removes a Resource from the world.
run_schedule
A Command that runs the schedule corresponding to the given ScheduleLabel.
run_system
A Command that runs the system corresponding to the given SystemId.
run_system_cached
A Command that runs the given system, caching its SystemId in a CachedSystemId resource.
run_system_cached_with
A Command that runs the given system with the given input value, caching its SystemId in a CachedSystemId resource.
run_system_with
A Command that runs the system corresponding to the given SystemId and provides the given input value.
send_event
A Command that sends an arbitrary Event.
spawn_batch
A Command that consumes an iterator of Bundles to spawn a series of entities.
trigger
A Command that sends a global Trigger without any targets.
trigger_targets
A Command that sends a Trigger for the given targets.
unregister_system
A Command that removes a system previously registered with Commands::register_system or World::register_system.
unregister_system_cached
A Command that removes a system previously registered with one of the following: