Blackboard
Description:
A blackboard object that can be used to store data for behavior tree nodes.
deltaTime
Type: Readonly Field.
Description:
The time since the last frame update in seconds.
Signature:
const deltaTime: number
owner
Type: Readonly Field.
Description:
The unit that the AI agent belongs to.
Signature:
const owner: Unit
__index
Type: Metamethod.
Description:
A metamethod to index the blackboard properties.
Signature:
metamethod __index: function(self: Blackboard, key: string): Item
Parameters:
Parameter | Type | Description |
---|---|---|
key | string | The key to index. |
Returns:
Return Type | Description |
---|---|
Item | The value associated with the key. |
__newindex
Type: Metamethod.
Description:
A metamethod to assign values to the blackboard properties.
Signature:
metamethod __newindex: function(self: Blackboard, key: string, item: Item)
Parameters:
Parameter | Type | Description |
---|---|---|
key | string | The key to assign. |
item | Item | The value to assign to the key. |