|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
协程动作节点包装类。 More...
#include <nbt.h>
Public Member Functions | |
| nbt_coro_action_node (const std::string &aname, const BT::NodeConfig &aconfig, nbt_node_callback< TACTOR > afun) | |
| 构造函数。 | |
| nbt_status | tick () override |
| 执行协程tick。 | |
协程动作节点包装类。
继承自BT::CoroActionNode,允许回调在执行过程中通过 setStatusRunningAndYield()暂停并返回RUNNING给父节点。 下次tick时协程从暂停处恢复执行。
| TACTOR | Actor类型 |
|
inline |
构造函数。
| aname | 节点实例名称 |
| aconfig | 节点配置 |
| afun | 协程回调函数 |
|
inlineoverride |
执行协程tick。
调用回调函数,支持协程暂停和恢复。