WorldLifecycleManager.ixx File
Manager for deferred world-level lifecycle operations. More...
Included Headers
#include <vector>
#include <cassert>
#include <helios.engine.runtime.world.tags.ManagerRole>
#include <helios.engine.runtime.lifecycle.commands.WorldLifecycleCommand>
#include <helios.engine.runtime.lifecycle.types>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.engine.runtime.messaging.command.CommandHandlerRegistry>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | runtime |
| namespace | lifecycle |
Classes Index
| class | WorldLifecycleManager |
|
Manager that processes deferred world lifecycle commands. More... | |
Description
Manager for deferred world-level lifecycle operations.
File Listing
The file content with the documentation metadata removed is:
19using namespace helios::engine::runtime::world;
20using namespace helios::engine::runtime::lifecycle::commands;
21using namespace helios::engine::runtime::lifecycle::types;
22using namespace helios::engine::runtime::messaging::command;
23export namespace helios::engine::runtime::lifecycle {
41 class WorldLifecycleManager {
60 bool submit(WorldLifecycleCommand cmd) noexcept {
61 pending_.push_back(cmd);
70 void init(CommandHandlerRegistry& commandHandlerRegistry) {
71 commandHandlerRegistry.registerHandler<WorldLifecycleCommand>(*this);
84 void flush(UpdateContext& updateContext) noexcept {
92 for (const auto& cmd : queue) {
93 switch (cmd.action()) {
99 assert(false && "Needs to call GameWorld reset()");
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.