ScoreObserverSystem Class
System that propagates score snapshots to ScoreObserverComponents. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Constructors Index
| ScoreObserverSystem (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 ScoreObserverComponents with current score data. More... | |
Private Member Attributes Index
| ScorePoolManager & | scorePoolManager_ |
|
Reference to the ScorePoolManager that owns the score pools. More... | |
Description
System that propagates score snapshots to ScoreObserverComponents.
Each frame, queries all active entities with a ScoreObserverComponent and updates them with the current ScorePoolSnapshot from the ScorePoolManager. The component's revision-based change detection ensures that downstream consumers (e.g. UI bindings) are only notified when the score actually changes.
- See Also
- See Also
ScoreObserverComponent
- See Also
Definition at line 47 of file ScoreObserverSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 57 of file ScoreObserverSystem.ixx.
Public Constructors
ScoreObserverSystem()
| inline explicit |
Constructs the system with a reference to the ScorePoolManager.
- Parameters
-
scorePoolManager The ScorePoolManager providing score pool state.
Definition at line 63 of file ScoreObserverSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Updates all active ScoreObserverComponents with current score data.
Compares each observer's cached revision against the pool's current revision. On mismatch, propagates the pool's snapshot to the component.
- Parameters
-
updateContext The current frame's update context.
Definition at line 74 of file ScoreObserverSystem.ixx.
Private Member Attributes
scorePoolManager_
|
Reference to the ScorePoolManager that owns the score pools.
Definition at line 52 of file ScoreObserverSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.