HierarchyPropagationSystem Class
Propagates activation state from parent to child entities. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Processes hierarchy propagation for dirty root entities. More... | |
Private Member Functions Index
| void | updateEntityHierarchy (GameObject go, helios::engine::runtime::world::UpdateContext &updateContext, bool active) |
|
Recursively updates activation state for an entity and its children. More... | |
Private Member Attributes Index
| std::vector< GameObject > | roots_ |
|
Temporary storage for root entities pending propagation. More... | |
Description
Propagates activation state from parent to child entities.
This system processes entities with HierarchyComponent and propagates their active/inactive state to all descendants. Only root entities (those without a parent) that are marked dirty trigger propagation.
The system runs in two passes:
- Active roots: propagate active state to children
- Inactive roots: propagate inactive state to children
Definition at line 47 of file HierarchyPropagationSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 78 of file HierarchyPropagationSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Processes hierarchy propagation for dirty root entities.
- Parameters
-
updateContext The current frame's update context.
Definition at line 84 of file HierarchyPropagationSystem.ixx.
Reference helios::engine::runtime::world::UpdateContext::view.
Private Member Functions
updateEntityHierarchy()
| inline |
Recursively updates activation state for an entity and its children.
- Parameters
-
go The entity to update.
active The activation state to apply.
Definition at line 55 of file HierarchyPropagationSystem.ixx.
Private Member Attributes
roots_
|
Temporary storage for root entities pending propagation.
Definition at line 73 of file HierarchyPropagationSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.