The tree map contains the static data of a behavior tree. That's the node themselves with their tick functions and parameters
The tree map contains the static data of a behavior tree. That's the node themselves with their tick functions and parameters
(dissoc-node tree id)
Removes a node from the tree
Removes a node from the tree
(get-next-id tree)
Returns a vector pair with the next id and an updated tree
Returns a vector pair with the next id and an updated tree
(get-node tree id)
Returns a node by id. A node is just a closure that can be called with a context.
Returns a node by id. A node is just a closure that can be called with a context.
(get-node-meta tree id)
Returns the node meta-data, that includes tag, params and children-ids
Returns the node meta-data, that includes tag, params and children-ids
(get-root-node tree)
Returns the root node
Returns the root node
(get-root-node-id tree)
Returns the id of the root node
Returns the id of the root node
(set-node tree id tree-node)
Sets the node at the provided id
Sets the node at the provided id
(set-node-meta tree id value)
Sets the node meta-data
Sets the node meta-data
(set-root-node-id tree id)
Set the roo node id
Set the roo node id
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close