Skip to main content

MaxScoreObserverClearSystem Class

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

Declaration

class helios::engine::mechanics::scoring::systems::MaxScoreObserverClearSystem { ... }

Public Member Typedefs Index

usingEngineRoleTag = helios::engine::common::tags::SystemRole

Public Member Functions Index

voidupdate (helios::engine::runtime::world::UpdateContext &updateContext) noexcept

Clears update flags on all active MaxScoreObserverComponents. More...

Description

System that resets the hasUpdate flag on all MaxScoreObserverComponents.

Scheduled after the UI binding systems have consumed the update. This ensures that MaxScoreObserverComponent::hasUpdate() returns true for exactly one frame after a high score change.

See Also

MaxScoreObserverSystem

See Also

MaxScoreObserverComponent

Definition at line 16 of file MaxScoreObserverComponent.ixx.

Public Member Typedefs

EngineRoleTag

using helios::engine::mechanics::scoring::systems::MaxScoreObserverClearSystem::EngineRoleTag = helios::engine::common::tags::SystemRole

Public Member Functions

update()

void helios::engine::mechanics::scoring::systems::MaxScoreObserverClearSystem::update (helios::engine::runtime::world::UpdateContext & updateContext)
inline noexcept

Clears update flags on all active MaxScoreObserverComponents.

Parameters
updateContext

The current frame's update context.

Definition at line 50 of file MaxScoreObserverClearSystem.ixx.

51
52 for (auto [entity, soc, active] : updateContext.view<
55 >().whereEnabled()) {
56
57 soc->clearUpdate();
58
59 }
60
61 }

The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.