|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
同步动作节点包装类。 More...
#include <nbt.h>
Public Member Functions | |
| nbt_action_node (const std::string &aname, const BT::NodeConfig &aconfig, nbt_node_callback< TACTOR > afun) | |
| 构造函数。 | |
| nbt_status | tick () override |
| 执行节点tick。 | |
同步动作节点包装类。
继承自BT::SyncActionNode,将节点回调函数包装为行为树节点。 tick()方法从黑板获取上下文,调用用户注册的回调函数。
| TACTOR | Actor类型 |
|
inline |
构造函数。
| aname | 节点实例名称 |
| aconfig | 节点配置(含黑板引用) |
| afun | 用户注册的回调函数 |
|
inlineoverride |
执行节点tick。
从黑板中获取nbt_context指针,调用用户回调函数。