components Folder
Files Index
| file | helios/engine/ecs/components/_module.ixx |
|
ECS components submodule. More... | |
| file | HierarchyComponent.ixx |
|
Component for parent-child entity relationships. More... | |
Description
helios::engine::ecs::components
ECS core components for entity relationships and state management.
Overview
This submodule provides fundamental components used by the ECS architecture itself, as opposed to game-specific components defined in mechanics or modules.
Components
| Component | Purpose |
|---|---|
| HierarchyComponent | Parent-child relationships for entity graphs |
HierarchyComponent
Enables entities to form tree structures where state changes propagate from parent to child entities.
Members:
- children_ – Child entity handles
- parent_ – Optional parent handle
- isDirty_ – Signals pending hierarchy propagation
Usage:
auto* hc = entity.add<HierarchyComponent>();
hc->setParent(parentHandle);
hc->addChild(childHandle);
hc->markDirty(); // Triggers propagation next frame
Related Modules
| Module | Purpose |
|---|---|
| helios.engine.ecs.systems | Systems that process ECS components |
| helios.engine.mechanics.lifecycle | Active/Inactive tag components |
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.