MaxScoreObserverComponent.ixx File
Component for observing score pool changes as high score. More...
Included Headers
#include <helios.core.types>
#include <helios.engine.mechanics.scoring.types>
#include <helios.engine.mechanics.scoring.MaxScorePoolSnapshot>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | mechanics |
|
High-level gameplay systems and components for game logic. More... | |
| namespace | scoring |
|
Score management and tracking system for game mechanics. More... | |
| namespace | systems |
|
Systems for score processing and observation. More... | |
| namespace | components |
|
Score-related ECS components. More... | |
Classes Index
| class | MaxScoreObserverClearSystem |
|
System that resets the hasUpdate flag on all MaxScoreObserverComponents. More... | |
| class | MaxScoreObserverComponent |
|
Component that observes and caches the high score value from a ScorePool. More... | |
Description
Component for observing score pool changes as high score.
File Listing
The file content with the documentation metadata removed is:
15namespace helios::engine::mechanics::scoring::systems {
16 class MaxScoreObserverClearSystem {};
19using namespace helios::engine::mechanics::scoring::types;
21export namespace helios::engine::mechanics::scoring::components {
35 class MaxScoreObserverComponent {
45 ScorePoolId scorePoolId_{helios::core::types::no_init};
58 MaxScorePoolSnapshot snapshot_;
99 MaxScoreObserverComponent() = default;
106 MaxScoreObserverComponent(const MaxScoreObserverComponent& other) :
109 MaxScoreObserverComponent& operator=(const MaxScoreObserverComponent&) = default;
110 MaxScoreObserverComponent(MaxScoreObserverComponent&&) noexcept = default;
111 MaxScoreObserverComponent& operator=(MaxScoreObserverComponent&&) noexcept = default;
118 void setScorePoolId(const ScorePoolId scorePoolId) noexcept {
119 scorePoolId_ = scorePoolId;
127 [[nodiscard]] ScorePoolId scorePoolId() const noexcept {
138 void setMaxScorePoolSnapshot(const helios::engine::mechanics::scoring::MaxScorePoolSnapshot& snapshot) noexcept {
151 [[nodiscard]] ScorePoolRevision scorePoolRevision() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.