载入中...
搜索中...
未找到
SimulationEvents.cpp
浏览该文件的文档.
2
3namespace eve::rpg::detail {
4namespace {
5thread_local SimulationEvents defaults;
6// Internal observer: active nested owners outlive the synchronous scope that selects them.
7thread_local SimulationEvents* current = &defaults;
8} // namespace
12} // namespace eve::rpg::detail
std::vector< Value > defaults
Definition ECS.cpp:49
double current
SimulationEventScope(SimulationEvents &next)
Activate next; its owner must outlive this scope.
~SimulationEventScope()
Restore the previous event owner before the scoped actors are destroyed.
SimulationEvents & simulationEvents()
Borrow the current thread's event owner for the immediate synchronous operation.
One simulation's owning event queues; actors are borrowed until that simulation ends.