DelayedComponentEnablerSystem Class Template
System that processes delayed component activations each frame. More...
Declaration
Public Member Typedefs Index
template <typename THandle> | |
| using | EngineRoleTag = helios::engine::runtime::world::tags::SystemRole |
Public Member Functions Index
template <typename THandle> | |
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Processes all deferred components and activates expired ones. More... | |
Private Member Attributes Index
template <typename THandle> | |
| std::vector< helios::ecs::types::ComponentTypeId< THandle > > | sync_ |
|
Temporary buffer for components that completed their delay. More... | |
Description
System that processes delayed component activations each frame.
DelayedComponentEnablerSystem iterates over all entities with a DelayedComponentEnabler component and decrements the delay timers. When a timer reaches zero, the corresponding component is enabled.
This system enables runtime patterns such as:
- Spawn immunity: Projectiles/enemies ignore collisions briefly
- Staggered activation: Wave spawns activate progressively
- Effect sequencing: Components enable in a defined order
Should be scheduled in the runtime phase to ensure proper timing.
- See Also
DelayedComponentEnabler
- See Also
Definition at line 44 of file DelayedComponentEnablerSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 54 of file DelayedComponentEnablerSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Processes all deferred components and activates expired ones.
For each entity with DelayedComponentEnabler:
- Decrements all delay timers by deltaTime
- Enables components whose timers reach zero
- Removes activated components from the deferred list
- Parameters
-
updateContext Provides deltaTime for timer updates.
Definition at line 65 of file DelayedComponentEnablerSystem.ixx.
Reference helios::engine::runtime::lifecycle::registerComponents.
Private Member Attributes
sync_
|
Temporary buffer for components that completed their delay.
Definition at line 49 of file DelayedComponentEnablerSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.