Add/Get name for nodes in behaviour tree
This commit is contained in:
@@ -72,16 +72,17 @@ BzBTNode *bzBTDecorUntilFail(BzObjectPool *nodePool, BzBTNode *parent);
|
||||
BzBTNode *bzBTDecorRepeat(BzObjectPool *nodePool, BzBTNode *parent, i32 n);
|
||||
BzBTNode *bzBTDecorDelay(BzObjectPool *nodePool, BzBTNode *parent, f32 ms);
|
||||
|
||||
BzBTNode *bzBTAction(BzObjectPool *nodePool, BzBTNode *parent, BzBTActionFn fn,
|
||||
const char *name);
|
||||
BzBTNode *bzBTAction(BzObjectPool *nodePool, BzBTNode *parent, BzBTActionFn fn);
|
||||
|
||||
// Reflection data
|
||||
|
||||
void bzBTNodeSetName(BzBTNode *node, const char *name);
|
||||
const char *bzBTNodeGetName(const BzBTNode *node);
|
||||
|
||||
i32 bzBTDecorGetRepeat(const BzBTNode *node);
|
||||
f32 bzBTDecorGetDelay(const BzBTNode *node);
|
||||
|
||||
BzBTActionFn bzBTActionGetFn(const BzBTNode *node);
|
||||
const char *bzBTActionGetName(const BzBTNode *node);
|
||||
|
||||
BzBTNodeType bzBTGetNodeType(const BzBTNode *node);
|
||||
BzBTNode *bzBTNodeChild(const BzBTNode *node);
|
||||
|
||||
Reference in New Issue
Block a user