|
entttree 0.1.0
Hierarchical entity management for EnTT
|
ECS component storing an entity's parent and sibling position. More...
#include <hierarchy_types.h>
Public Member Functions | |
| bool | operator== (const ParentConnection &other) const =default |
Public Attributes | |
| entt::entity | parent = entt::null |
Parent entity, or entt::null for roots. | |
| Position | position |
| Sibling ordering key. | |
ECS component storing an entity's parent and sibling position.
This is the source of truth for parent-child relationships in a HierarchySystem. It lives on the child entity. The Position field determines the relative ordering among siblings.
Do not modify this component directly; use HierarchySystem's mutation API so that the internal children cache and signals stay consistent.
| HTag | Tag type identifying which hierarchy this connection belongs to. |
Definition at line 35 of file hierarchy_types.h.
| entt::entity entttree::ParentConnection< HTag >::parent = entt::null |
Parent entity, or entt::null for roots.
Definition at line 36 of file hierarchy_types.h.
| Position entttree::ParentConnection< HTag >::position |
Sibling ordering key.
Definition at line 37 of file hierarchy_types.h.