Skip to main content

leaf

Function leaf 

Source
pub fn leaf<F>(name: &str, tick_fn: F) -> BehaviorNode
where F: FnMut(&mut Blackboard, f32) -> NodeStatus + 'static,
Expand description

Create a simple leaf node from a closure.