MaxScore2UiTextUpdateSystem Class
System for binding high score values to UI text components. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Updates text components with current high score values. More... | |
Description
System for binding high score values to UI text components.
Queries entities with MaxScoreObserverComponent, NumberFormatterComponent, and UiTextComponent. When the max score observer signals an update, the formatted high score is propagated to the text component for display.
- See Also
MaxScoreObserverComponent
- See Also
NumberFormatterComponent
Definition at line 42 of file MaxScore2UiTextUpdateSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 47 of file MaxScore2UiTextUpdateSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Updates text components with current high score values.
Skips entities whose MaxScoreObserverComponent has no pending update. Otherwise formats the max score via NumberFormatterComponent and writes the result to UiTextComponent.
- Parameters
-
updateContext The current frame's update context.
Definition at line 57 of file MaxScore2UiTextUpdateSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.