Liking cljdoc? Tell your friends :D

cark.behavior-tree.node-defs.bind

The :bind node establishes a dynamic context, storing some data in the defined variables while it executes its child subtree.

It has a single parameter :let which, just like clojure's let is a vector of variable names (a keyword) and variable values (a value or a context funtion).

[:bind {:let [:one 1 
              :two (bt/bb-getter-in [:some-bb-key])]}
  [send-event {:event :hello :arg (bt/var-getter :two)}]]
The :bind node establishes a dynamic context, storing some data in
the defined variables while it executes its child subtree.

It has a single parameter :let which, just like clojure's let is a vector of
variable names (a keyword) and variable values (a value or a context funtion).

```clojure
[:bind {:let [:one 1 
              :two (bt/bb-getter-in [:some-bb-key])]}
  [send-event {:event :hello :arg (bt/var-getter :two)}]]
```
raw docstring

compile-nodeclj/s

(compile-node tree id tag params [child-id])
source

logclj/s

(log value)
source

make-get-bindingsclj/s

(make-get-bindings bindings)
source

registerclj/s

(register)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close