Skip to main content

ScoreObserverClearSystem.ixx File

System that clears update flags on ScoreObserverComponents. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacemechanics

High-level gameplay systems and components for game logic. More...

namespacescoring

Score management and tracking system for game mechanics. More...

namespacesystems

Systems for score processing and observation. More...

Classes Index

classScoreObserverClearSystem

System that resets the hasUpdate flag on all ScoreObserverComponents. More...

Description

System that clears update flags on ScoreObserverComponents.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file ScoreObserverClearSystem.ixx
3 * @brief System that clears update flags on ScoreObserverComponents.
4 */
5module;
6
7
8
9
10export module helios.engine.mechanics.scoring.systems.ScoreObserverClearSystem;
11
12import helios.engine.mechanics.scoring.ScorePoolManager;
13
14import helios.engine.mechanics.scoring.components;
15
16import helios.engine.runtime.world.GameWorld;
17import helios.engine.runtime.world.UpdateContext;
18
19
20
21import helios.engine.modules.physics.collision.events;
22
23import helios.engine.mechanics.lifecycle.components.Active;
24
25
26
27import helios.engine.common.tags.SystemRole;
28
30
31 /**
32 * @brief System that resets the hasUpdate flag on all ScoreObserverComponents.
33 *
34 * Scheduled after the UI binding systems have consumed the update.
35 * This ensures that ScoreObserverComponent::hasUpdate() returns true
36 * for exactly one frame after a score change.
37 *
38 * @see ScoreObserverSystem
39 * @see ScoreObserverComponent
40 */
42
43
44 public:
45
47
48 /**
49 * @brief Clears update flags on all ScoreObserverComponents.
50 *
51 * @param updateContext The current frame's update context.
52 */
54
55 for (auto [entity, soc, active] : updateContext.view<
58 >().whereEnabled()) {
59
60 soc->clearUpdate();
61
62 }
63
64 }
65
66 };
67
68}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.