beehave 0.0.4

A simple library for defining and evaluating a hierarchical state machine (behaviour tree).
Documentation
1
2
3
4
5
6
7
use behaviour_result::BehaviourResult;

/// A type which is used to represent a node on the behaviour tree.
///
pub trait BehaviourNode<T> {
    fn evaluate(&mut self, &mut T) -> BehaviourResult;
}