ScorePoolSnapshot Struct
Immutable snapshot of a ScorePool's state. More...
Declaration
Public Member Attributes Index
| helios::engine::mechanics::scoring::types::ScorePoolId | scorePoolId {helios::core::types::no_init} |
|
Unique identifier of the score pool. More... | |
| double | totalScore |
|
The total score value at the time of the snapshot. More... | |
| helios::engine::mechanics::scoring::types::ScorePoolRevision | revision |
|
The revision number for change detection. More... | |
Description
Immutable snapshot of a ScorePool's state.
Captures the pool ID, total score, and revision at a specific point in time. Useful for passing score data to UI or other systems without exposing the mutable ScorePool.
The revision field allows observers to detect changes by comparing snapshots without needing to track individual score values.
Definition at line 27 of file ScorePoolSnapshot.ixx.
Public Member Attributes
revision
|
The revision number for change detection.
Incremented whenever a score in the pool changes. Compare revisions to detect updates without polling values.
Definition at line 45 of file ScorePoolSnapshot.ixx.
scorePoolId
|
Unique identifier of the score pool.
Definition at line 32 of file ScorePoolSnapshot.ixx.
totalScore
|
The total score value at the time of the snapshot.
Definition at line 37 of file ScorePoolSnapshot.ixx.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.