MCPcopy Create free account
hub / github.com/Calamari/BehaviorTree.js / registryLookUp

Function registryLookUp

src/BehaviorTree.js:10–19  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

8}
9
10export function registryLookUp(node) {
11 if (typeof node === 'string') {
12 const lookedUpNode = registry[node]
13 if (!lookedUpNode) {
14 throw new Error(`No node with name ${node} registered.`)
15 }
16 return lookedUpNode
17 }
18 return node
19}
20
21export default class BehaviorTree {
22 constructor({ tree, blackboard }) {

Callers 5

parseMethod · 0.90
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
stepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected