ScoreObserverComponent.ixx File
Component for observing score pool changes. More...
Included Headers
#include <helios.core.types>
#include <helios.engine.mechanics.scoring.types>
#include <helios.engine.mechanics.scoring.ScorePoolSnapshot>
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 | ScoreObserverClearSystem |
|
System that resets the hasUpdate flag on all ScoreObserverComponents. More... | |
| class | ScoreObserverComponent |
|
Component that observes and caches the score value from a ScorePool. More... | |
Description
Component for observing score pool changes.
File Listing
The file content with the documentation metadata removed is:
15namespace helios::engine::mechanics::scoring::systems {
16 class ScoreObserverClearSystem {};
19using namespace helios::engine::mechanics::scoring::types;
21export namespace helios::engine::mechanics::scoring::components {
35 class ScoreObserverComponent {
44 helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId_{helios::core::types::no_init};
57 helios::engine::mechanics::scoring::ScorePoolSnapshot snapshot_;
98 ScoreObserverComponent() = default;
105 ScoreObserverComponent(const ScoreObserverComponent& other) :
108 ScoreObserverComponent& operator=(const ScoreObserverComponent&) = default;
109 ScoreObserverComponent(ScoreObserverComponent&&) noexcept = default;
110 ScoreObserverComponent& operator=(ScoreObserverComponent&&) noexcept = default;
117 void setScorePoolId(const helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId) noexcept {
118 scorePoolId_ = scorePoolId;
126 [[nodiscard]] helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId() const noexcept {
137 void setScorePoolSnapshot(const helios::engine::mechanics::scoring::ScorePoolSnapshot& snapshot) noexcept {
150 [[nodiscard]] ScorePoolRevision scorePoolRevision() const noexcept {
159 [[nodiscard]] double totalScore() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.