pub trait Action: Send + Sync + 'static {
    fn on_start(
        &mut self,
        agent: Entity,
        world: &mut World,
        commands: &mut ActionCommands
    ); fn on_stop(&mut self, agent: Entity, world: &mut World, reason: StopReason); }
Expand description

The trait that all actions must implement.

Required Methods

The method that is called when an action is started.

The method that is called when an action is stopped.

Implementations on Foreign Types

Implementors