GameTimer2UiTextUpdateSystem Class
System for binding game timer values to UI text components. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Constructors Index
| GameTimer2UiTextUpdateSystem (TimerManager &timerManager) | |
|
Constructs the system with a reference to the TimerManager. More... | |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Updates text components with current game timer values. More... | |
Private Member Attributes Index
| TimerManager & | timerManager_ |
|
Reference to the TimerManager that owns the game timers. More... | |
Description
System for binding game timer values to UI text components.
Queries entities with GameTimerBindingComponent, TimeFormatterComponent, and UiTextComponent. When the observed timer's revision changes, the formatted time string is propagated to the text component for display.
- See Also
- See Also
GameTimerBindingComponent
- See Also
TimeFormatterComponent
Definition at line 43 of file GameTimer2UiTextUpdateSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 52 of file GameTimer2UiTextUpdateSystem.ixx.
Public Constructors
GameTimer2UiTextUpdateSystem()
| inline explicit |
Constructs the system with a reference to the TimerManager.
- Parameters
-
timerManager The TimerManager providing game timer state.
Definition at line 58 of file GameTimer2UiTextUpdateSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Updates text components with current game timer values.
For each matching entity, compares the timer revision against the observer's cached revision. On mismatch, formats the elapsed/remaining time via the TimeFormatterComponent and updates the UiTextComponent.
- Parameters
-
updateContext The current frame's update context.
Definition at line 72 of file GameTimer2UiTextUpdateSystem.ixx.
Private Member Attributes
timerManager_
|
Reference to the TimerManager that owns the game timers.
Definition at line 48 of file GameTimer2UiTextUpdateSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.