ObserverConfig.ixx File
Configuration for observer components. More...
Included Headers
#include <cassert>
#include <helios.engine.mechanics.timing>
#include <helios.engine.mechanics.scoring.components>
#include <helios.engine.mechanics.scoring.types>
#include <helios.engine.mechanics.match.components>
#include <helios.engine.ecs.GameObject>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | builder |
|
Fluent builder pattern for constructing GameObjects. More... | |
| namespace | gameObject |
|
Factory and prototype classes for GameObject construction. More... | |
| namespace | builders |
|
Domain-specific builders for configuring different aspects of GameObjects. More... | |
| namespace | configs |
|
Fine-grained configuration classes for component setup. More... | |
Classes Index
| class | ObserverConfig |
|
Fluent configuration for observer component setup. More... | |
Description
Configuration for observer components.
File Listing
The file content with the documentation metadata removed is:
21export namespace helios::engine::builder::gameObject::builders::configs {
34 class ObserverConfig {
39 helios::engine::ecs::GameObject gameObject_;
48 explicit ObserverConfig(helios::engine::ecs::GameObject gameObject) : gameObject_(gameObject) {
61 ObserverConfig& scorePool(const helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId) {
62 return runningScore(scorePoolId);
72 ObserverConfig& runningScore(const helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId) {
74 auto* soc = gameObject_.get<helios::engine::mechanics::scoring::components::ScoreObserverComponent>();
78 gameObject_.add<helios::engine::mechanics::scoring::components::ScoreObserverComponent>()
98 gameObject_.add<helios::engine::mechanics::match::components::LivesBindingComponent>(
99 gameObject.entityHandle()
111 ObserverConfig& maxScore(const helios::engine::mechanics::scoring::types::ScorePoolId scorePoolId) {
113 auto* soc = gameObject_.get<helios::engine::mechanics::scoring::components::MaxScoreObserverComponent>();
117 gameObject_.add<helios::engine::mechanics::scoring::components::MaxScoreObserverComponent>()
129 ObserverConfig& time(const helios::engine::mechanics::timing::types::GameTimerId gameTimerId) {
131 auto* toc = gameObject_.get<helios::engine::mechanics::timing::components::GameTimerBindingComponent>();
135 gameObject_.add<helios::engine::mechanics::timing::components::GameTimerBindingComponent>()
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.