Expand description
Integer experience curves, with at most 1023 promotions per award.
Awards saturate the stored u64 XP before subtracting promotion costs.
Excess at the level cap is retained within that integer bound. This is not
mathematically unbounded XP: saturation can discard part of a request, and
partitioning a saturating award can change its final remainder.
Preview is advisory; only a newly accepted game event should call
Progression::award_report and grant its promotions. Neither preview nor
restore issues rewards. Games own event deduplication and must restore their
reward state consistently with progression, or retain a separate reward ledger
across rollback. This helper cannot undo external effects or prevent a game
from re-awarding a replayed event after loading an older snapshot.
Structs§
- Award
Report - Exact result of applying the legacy saturating-add-then-promote rule.
- Progression
- Private, normalized progression state with an immutable authored curve.
- Progression
Snapshot - Plain state plus the exact authored curve, with no serialization or wire ABI.
- Restore
Report - State-loading observation, deliberately containing no award/promotions.
Enums§
- Restore
Error - First failed restore check, in declaration order. Rejection is atomic.