A key/value storage for sharing among [LimboHSM] states and [BehaviorTree] tasks.
Blackboard is where data is stored and shared between states in the [LimboHSM] system and tasks in a [BehaviorTree]. Each state and task in the [BehaviorTree] can access this Blackboard, allowing them to read and write data. This makes it easy to share information between different actions and behaviors.
Blackboard can also act as a parent scope for another Blackboard. If a specific variable is not found in the active scope, it looks in the parent Blackboard to find it. A parent Blackboard can itself have its own parent scope, forming what we call a "blackboard scope chain." Importantly, there is no limit to how many Blackboards can be in this chain, and the Blackboard doesn't modify values in the parent scopes.
New scopes can be created using the [BTNewScope] and [BTSubtree] decorators. Additionally, a new scope is automatically created for any [LimboState] that has defined non-empty Blackboard data or for any root-level [LimboHSM] node.
Removes a variable by its name.
Returns Blackboard data as a [Dictionary].
Returns a Blackboard that serves as the parent scope for this instance.
Returns variable value.
Returns [code]true[/code] if the Blackboard contains the [code]p_key[/code] variable, including the parent scopes.
If [code]true[/code], any [NodePath] variables in the [Blackboard] are replaced with [Node] references when the tree is instantiated. References are retrieved by calling [method Node.get_node] on the agent instance.
Overwrites Blackboard data, replacing any previously stored variables within current scope. Use with caution.
Assigns the parent scope. If a value isn't in the current Blackboard scope, it will look in the parent scope Blackboard to find it.
Assigns a value to a Blackboard variable.
Returns the topmost [Blackboard] in the scope chain.