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 Transition
s. Transition
s 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.