载入中...
搜索中...
未找到
eve::rpg::detail::SimulationEventScope类 参考
Redirect RPG events into a caller-owned simulation for a nested synchronous scope. @ownership Borrows next until scope destruction; scopes must unwind in stack order. @thread RPG simulation thread only; no callbacks or locks in construction/destruction. 更多...
#include <SimulationEvents.h>
Public 成员函数 | |
| SimulationEventScope (SimulationEvents &next) | |
| Activate next; its owner must outlive this scope. | |
| ~SimulationEventScope () | |
| Restore the previous event owner before the scoped actors are destroyed. | |
| SimulationEventScope (const SimulationEventScope &)=delete | |
| SimulationEventScope & | operator= (const SimulationEventScope &)=delete |
详细描述
Redirect RPG events into a caller-owned simulation for a nested synchronous scope. @ownership Borrows next until scope destruction; scopes must unwind in stack order. @thread RPG simulation thread only; no callbacks or locks in construction/destruction.
- 备注
- Pair with ecs::ScopedTable to isolate both actors and events. The default queues are untouched.
在文件 SimulationEvents.h 第 26 行定义.
构造及析构函数说明
◆ SimulationEventScope() [1/2]
|
explicit |
◆ ~SimulationEventScope()
| eve::rpg::detail::SimulationEventScope::~SimulationEventScope | ( | ) |
Restore the previous event owner before the scoped actors are destroyed.
在文件 SimulationEvents.cpp 第 11 行定义.
引用了 current.
◆ SimulationEventScope() [2/2]
|
delete |
成员函数说明
◆ operator=()
|
delete |
该类的文档由以下文件生成:
- src/modules/rpg/SimulationEvents.h
- src/modules/rpg/SimulationEvents.cpp