HealthUpdateClearSystem Class
Clears the dirty flag on every active HealthComponent. More...
Declaration
class helios::engine::mechanics::health::systems::HealthUpdateClearSystem { ... }
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Member Functions Index
| void | update (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
|
Definition at line 37 of file HealthUpdateClearSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Iterates all active HealthComponents and resets their dirty state.
- Parameters
-
updateContext Current frame context.
Definition at line 43 of file HealthUpdateClearSystem.ixx.
43 void update(helios::engine::runtime::world::UpdateContext& updateContext) noexcept {
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.