gamai 0.1.39

Modular task switching library suitable for Game AI and Robotics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use gamai::prelude::*;

///
/// Root
/// 	Child0
/// 	Child1
/// 		Child0
///
pub fn test_action_graph() -> ActionGraph {
	ActionTree::new(vec![Box::new(SetScore::default())])
		.with_leaf(vec![Box::new(SetScore::default())])
		.with_child(
			ActionTree::new(vec![Box::new(SetScore::default())])
				.with_leaf(vec![Box::new(SetScore::default())]),
		)
		.into_action_graph()
}