Command

Trait Command 

Source
pub trait Command:
    Send
    + Sync
    + 'static {
    // Required method
    fn execute(self, world: &mut World);
}

Required Methods§

Source

fn execute(self, world: &mut World)

Implementors§

Source§

impl Command for DespawnCommand

Source§

impl Command for DespawnManyCommand

Source§

impl<T: Bundle + Send + Sync + 'static> Command for InsertCommand<T>

Source§

impl<T: Bundle + Send + Sync + 'static> Command for RemoveCommand<T>

Source§

impl<T: Bundle + Send + Sync + 'static> Command for SpawnCommand<T>

Source§

impl<T: Bundle + Send + Sync + 'static> Command for SpawnManyCommand<T>

Source§

impl<const LOCKING: bool, I: Component, O: Component> Command for RelatePairCommand<LOCKING, I, O>

Source§

impl<const LOCKING: bool, T: Component> Command for RelateCommand<LOCKING, T>

Source§

impl<const LOCKING: bool, T: Component> Command for RelateOneCommand<LOCKING, T>

Source§

impl<const LOCKING: bool, T: Component> Command for UnrelateCommand<LOCKING, T>