pub struct BehaviorContext {
pub blackboard: HashMap<String, String>,
pub tick_count: u64,
pub conditions: HashMap<String, bool>,
pub action_results: HashMap<String, BehaviorStatus>,
}Expand description
Shared context passed through the tree during evaluation.
Fields§
§blackboard: HashMap<String, String>General-purpose string key-value store.
tick_count: u64Monotonically increasing tick counter.
conditions: HashMap<String, bool>Boolean conditions used by Condition nodes.
action_results: HashMap<String, BehaviorStatus>Pre-set results for Action nodes.
Trait Implementations§
Source§impl Clone for BehaviorContext
impl Clone for BehaviorContext
Source§fn clone(&self) -> BehaviorContext
fn clone(&self) -> BehaviorContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BehaviorContext
impl Debug for BehaviorContext
Source§impl Default for BehaviorContext
impl Default for BehaviorContext
Source§fn default() -> BehaviorContext
fn default() -> BehaviorContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BehaviorContext
impl RefUnwindSafe for BehaviorContext
impl Send for BehaviorContext
impl Sync for BehaviorContext
impl Unpin for BehaviorContext
impl UnsafeUnpin for BehaviorContext
impl UnwindSafe for BehaviorContext
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