EngineFlowSystem Class Template
System that drives automatic game state transitions. More...
Declaration
Public Member Typedefs Index
template <typename TCommandBuffer> | |
| using | EngineRoleTag = helios::engine::runtime::world::tags::SystemRole |
template <typename TCommandBuffer> | |
| using | CommandBuffer_type = TCommandBuffer |
Public Member Functions Index
template <typename TCommandBuffer> | |
| void | update (helios::engine::runtime::world::UpdateContext &updateContext, TCommandBuffer &buffer) noexcept |
|
Updates the game flow and emits state transition commands. More... | |
Private Member Attributes Index
template <typename TCommandBuffer> | |
| EngineState | prevMatchState_ = EngineState::Undefined |
|
The previously observed game state. More... | |
template <typename TCommandBuffer> | |
| StateTransitionIdType< EngineState > | prevEngineStateTransitionId_ = StateTransitionIdType<EngineState>::Undefined |
|
The previously observed state transition ID. More... | |
Description
System that drives automatic game state transitions.
EngineFlowSystem monitors the current EngineState and issues StateCommands to advance the state machine when appropriate. It tracks the previous state and transition ID to avoid emitting duplicate commands.
Typical flow: Undefined -> Start -> Title.
- See Also
- See Also
- See Also
StateCommand
Definition at line 48 of file EngineFlowSystem.ixx.
Public Member Typedefs
CommandBuffer_type
|
Definition at line 64 of file EngineFlowSystem.ixx.
EngineRoleTag
|
Definition at line 62 of file EngineFlowSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Updates the game flow and emits state transition commands.
Checks the current EngineState from the session and compares it with the previously observed state. If a transition is required, a StateCommand is added to the command buffer.
- Parameters
-
updateContext The update context providing session and command buffer access.
Definition at line 75 of file EngineFlowSystem.ixx.
Reference helios::engine::runtime::registerComponents.
Private Member Attributes
prevEngineStateTransitionId_
|
The previously observed state transition ID.
Definition at line 58 of file EngineFlowSystem.ixx.
prevMatchState_
|
The previously observed game state.
Definition at line 53 of file EngineFlowSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.