Skip to main content

HealthUpdateClearSystem Class

Clears the dirty flag on every active HealthComponent. More...

Declaration

class helios::engine::mechanics::health::systems::HealthUpdateClearSystem { ... }

Public Member Typedefs Index

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

Public Member Functions Index

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

Iterates all active HealthComponents and resets their dirty state. More...

Description

Clears the dirty flag on every active HealthComponent.

Should run after all health-related observers have processed the current frame so that stale change notifications are discarded.

Definition at line 33 of file HealthUpdateClearSystem.ixx.

Public Member Typedefs

EngineRoleTag

using helios::engine::mechanics::health::systems::HealthUpdateClearSystem::EngineRoleTag = helios::engine::common::tags::SystemRole

Public Member Functions

update()

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

Iterates all active HealthComponents and resets their dirty state.

Parameters
updateContext

Current frame context.

Definition at line 43 of file HealthUpdateClearSystem.ixx.

44
45 for (auto [entity, hc, active] : updateContext.view<
48 >().whereEnabled()) {
49 hc->clearDirty();
50 }
51
52 }

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.