MaxScoreObserverSystem Class
System that propagates high score snapshots to MaxScoreObserverComponents. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Constructors Index
| MaxScoreObserverSystem (ScorePoolManager &scorePoolManager) | |
|
Constructs the system with a reference to the ScorePoolManager. More... | |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Updates all active MaxScoreObserverComponents with current high score data. More... | |
Private Member Attributes Index
| ScorePoolManager & | scorePoolManager_ |
|
Reference to the ScorePoolManager that owns the score pools. More... | |
Description
System that propagates high score snapshots to MaxScoreObserverComponents.
Each frame, queries all active entities with a MaxScoreObserverComponent and updates them with the current MaxScorePoolSnapshot from the ScorePoolManager. The component's revision-based change detection ensures that downstream consumers (e.g. UI bindings) are only notified when the high score actually changes.
- See Also
- See Also
MaxScoreObserverComponent
- See Also
Definition at line 48 of file MaxScoreObserverSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 57 of file MaxScoreObserverSystem.ixx.
Public Constructors
MaxScoreObserverSystem()
| inline explicit |
Constructs the system with a reference to the ScorePoolManager.
- Parameters
-
scorePoolManager The ScorePoolManager providing score pool state.
Definition at line 64 of file MaxScoreObserverSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Updates all active MaxScoreObserverComponents with current high score data.
- Parameters
-
updateContext The current frame's update context.
Definition at line 72 of file MaxScoreObserverSystem.ixx.
Private Member Attributes
scorePoolManager_
|
Reference to the ScorePoolManager that owns the score pools.
Definition at line 53 of file MaxScoreObserverSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.