Trait pure_hfsm::Transition[][src]

pub trait Transition {
    type World;
    fn decide<'w, 's>(
        &self,
        data: &mut StateData,
        world: &Self::World
    ) -> Target; }
Expand description

Decider for state transition

Each state has many Transitions. Transitions are ran every update in order. The first to return a non-Target::Continue result will dictate the next State or nested StateMachine the machine enters.

Associated Types

The world to observe to make a transition decision

Required methods

To what Target transition given world?

Implementors