Skip to main content

MaxScoreObserverClearSystem.ixx File

System that clears update flags on MaxScoreObserverComponents. 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

classMaxScoreObserverClearSystem

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

Description

System that clears update flags on MaxScoreObserverComponents.

File Listing

The file content with the documentation metadata removed is:

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

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.