Skip to main content

ScorePoolSnapshot Struct

Immutable snapshot of a ScorePool's state. More...

Declaration

struct helios::engine::mechanics::scoring::ScorePoolSnapshot { ... }

Public Member Attributes Index

helios::engine::mechanics::scoring::types::ScorePoolIdscorePoolId {helios::core::types::no_init}

Unique identifier of the score pool. More...

doubletotalScore

The total score value at the time of the snapshot. More...

helios::engine::mechanics::scoring::types::ScorePoolRevisionrevision

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

helios::engine::mechanics::scoring::types::ScorePoolRevision helios::engine::mechanics::scoring::ScorePoolSnapshot::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

helios::engine::mechanics::scoring::types::ScorePoolId helios::engine::mechanics::scoring::ScorePoolSnapshot::scorePoolId {helios::core::types::no_init}

totalScore

double helios::engine::mechanics::scoring::ScorePoolSnapshot::totalScore

The total score value at the time of the snapshot.

Definition at line 37 of file ScorePoolSnapshot.ixx.

37 double totalScore;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.