pub trait FsmState<Context>: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn tick(
&mut self,
ctx: &mut Context,
bb: &mut Blackboard,
dt: f32,
) -> StateResult;
// Provided methods
fn on_enter(&mut self, _ctx: &mut Context, _bb: &mut Blackboard) { ... }
fn on_exit(&mut self, _ctx: &mut Context, _bb: &mut Blackboard) { ... }
}Expand description
A single FSM state.