ecs Namespace
Core Entity-Component-System architecture. More...
Definition
Namespaces Index
| namespace | components |
|
ECS core components for entity relationships. More... | |
| namespace | systems |
|
Core ECS systems for entity management. More... | |
| namespace | traits |
| namespace | types |
Classes Index
| struct | ComponentOps |
|
Container for type-erased component lifecycle function pointers. More... | |
| class | ComponentOpsRegistry |
|
Global registry for component lifecycle function pointers. More... | |
| class | ComponentReflector |
|
Generates and registers ComponentOps for a component type. More... | |
| struct | EntityHandle |
|
A versioned handle for referencing entities in an EntityPool. More... | |
| class | EntityManager |
|
Manages entities and their associated components. More... | |
| class | EntityRegistry |
|
Central registry for creating and managing entity handles. More... | |
| struct | EntityResolver |
|
Callable that resolves an EntityHandle to a GameObject. More... | |
| class | GameObject |
|
Lightweight facade for entity component manipulation. More... | |
| class | SparseSetBase |
|
Abstract base class for type-erased sparse set access. More... | |
| class | SparseSet<T> |
|
A generic sparse set providing O(1) insertion, lookup, and removal. More... | |
| class | View<Components> |
|
A view class to iterate over entities having specific components. More... | |
Functions Index
| void | registerComponents () |
|
Registers all lifecycle components with the ComponentReflector. More... | |
Variables Index
| constexpr auto | InitialVersion = helios::engine::common::types::VersionId{1} |
|
The initial version assigned to newly created entities. More... | |
| constexpr auto | Tombstone = helios::engine::ecs::types::EntityTombstone |
|
Sentinel value indicating an empty slot in the sparse array. More... | |
Description
Core Entity-Component-System architecture.
This module provides the foundational classes for the composition-based game architecture. It includes entity base classes (GameObject, Component, CloneableComponent), system infrastructure (System), and query utilities (GameObjectFilter, GameObjectView).
Functions
registerComponents()
| inline |
Registers all lifecycle components with the ComponentReflector.
Definition at line 17 of file registry.ixx.
Referenced by helios::engine::bootstrap::registerAllComponents.
Variables
InitialVersion
| constexpr |
The initial version assigned to newly created entities.
Versions start at 1 to distinguish valid handles from default-initialized handles that may have a version of 0.
Definition at line 28 of file EntityRegistry.ixx.
Referenced by helios::engine::ecs::EntityRegistry::create.
Tombstone
| constexpr |
Sentinel value indicating an empty slot in the sparse array.
Aliased from `helios::engine::ecs::types::EntityTombstone`.
Definition at line 73 of file SparseSet.ixx.
Referenced by helios::engine::ecs::SparseSet< T >::contains, helios::engine::ecs::SparseSet< T >::emplace, helios::engine::ecs::SparseSet< T >::get, helios::engine::ecs::SparseSet< T >::get, helios::engine::ecs::SparseSet< T >::insert and helios::engine::ecs::SparseSet< T >::remove.
The documentation for this namespace was generated from the following files:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.