Skip to main content

commands Folder

Files Index

filehelios/engine/mechanics/lifecycle/commands/_module.ixx

Aggregates world-level lifecycle commands. More...

fileWorldLifecycleCommand.ixx

Command for requesting world-level lifecycle operations. More...

Description

helios::engine::mechanics::lifecycle::commands

World-level lifecycle commands for the command buffer.

This namespace contains command classes used to request world-level lifecycle operations through the command system.

Commands

CommandDescription
WorldLifecycleCommandCarries a WorldLifecycleAction to request a world-level operation (e.g. Reset)

WorldLifecycleAction is defined in the sibling types submodule (helios.engine.mechanics.lifecycle.types).

Usage

Commands are typically issued by state listeners when the game world needs to be reset:

 updateContext.queueCommand<WorldLifecycleCommand>(WorldLifecycleAction::Reset);

The command is routed through the EngineCommandBuffer to the WorldLifecycleManager, which executes the requested action during its flush cycle.



Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.