pub fn load(
tree_source: &TreeSource<'_>,
registry: &Registry,
check_ports: bool,
) -> Result<BehaviorNodeContainer, LoadError>Expand description
Instantiate a behavior tree from a AST of a tree.
check_ports enables static checking of port availability before actually ticking.
It is useful to catch errors in a behavior tree source file, but you need to
implement crate::BehaviorNode::provided_ports to use it.