Skip to main content

components Folder

Files Index

filehelios/engine/ecs/components/_module.ixx

ECS components submodule. More...

fileHierarchyComponent.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

ComponentPurpose
HierarchyComponentParent-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

ModulePurpose
helios.engine.ecs.systemsSystems that process ECS components
helios.engine.mechanics.lifecycleActive/Inactive tag components


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.