pub struct BehaviorNodeContainer { /* private fields */ }
Implementations§
Source§impl BehaviorNodeContainer
impl BehaviorNodeContainer
pub fn new( node: Box<dyn BehaviorNode>, blackboard_map: HashMap<Symbol, BlackboardValue>, ) -> Self
pub fn new_raw(node: Box<dyn BehaviorNode>) -> Self
pub fn new_node(node: impl BehaviorNode + 'static) -> Self
pub fn tick( &mut self, arg: BehaviorCallback<'_>, ctx: &mut Context, ) -> BehaviorResult
pub fn add_child(&mut self, child: BehaviorNodeContainer) -> AddChildResult
pub fn children(&self) -> &[BehaviorNodeContainer]
pub fn last_result(&self) -> Option<BehaviorResult>
pub fn name(&self) -> &str
pub fn blackboard_map(&self) -> &HashMap<Symbol, BlackboardValue>
pub fn port_map(&self) -> impl Iterator<Item = PortMapOwned>
pub fn is_subtree(&self) -> bool
pub fn is_subtree_expanded(&self) -> bool
pub fn expand_subtree(&self, b: bool)
Auto Trait Implementations§
impl !Freeze for BehaviorNodeContainer
impl !RefUnwindSafe for BehaviorNodeContainer
impl !Send for BehaviorNodeContainer
impl !Sync for BehaviorNodeContainer
impl Unpin for BehaviorNodeContainer
impl !UnwindSafe for BehaviorNodeContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more