This commit is contained in:
aozhiwei 2023-10-21 19:25:55 +08:00
parent f005fd9362
commit 7b6ff961bc

View File

@ -23,9 +23,7 @@
class Context : public BtContext \
{public: \
__VA_ARGS__; \
std::function<void()> _destory_cb; \
long long frameno = 0; \
~Context() { if (_destory_cb) { _destory_cb(); };}; \
}; \
auto context = std::make_shared<Context>(); \
context->frameno = agent->GetRoom()->GetFrameNo(); \