Skip to main content

ScoreObserverClearSystem Class

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

Declaration

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

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 ScoreObserverComponents. More...

Description

System that resets the hasUpdate flag on all ScoreObserverComponents.

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

See Also

ScoreObserverSystem

See Also

ScoreObserverComponent

Definition at line 16 of file ScoreObserverComponent.ixx.

Public Member Typedefs

EngineRoleTag

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

Public Member Functions

update()

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

Clears update flags on all ScoreObserverComponents.

Parameters
updateContext

The current frame's update context.

Definition at line 53 of file ScoreObserverClearSystem.ixx.

54
55 for (auto [entity, soc, active] : updateContext.view<
58 >().whereEnabled()) {
59
60 soc->clearUpdate();
61
62 }
63
64 }

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.