vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::Hierarchy Struct Reference

Component representing parent-child relationships in an entity hierarchy. More...

#include <hierarchy.h>

Public Attributes

EntityId parent {}
 Null at a subtree root.
EntityId firstChild {}
 Null at a leaf.
EntityId lastChild {}
 For O(1) append; null at a leaf.

Detailed Description

Component representing parent-child relationships in an entity hierarchy.

An intrusive doubly-linked sibling list, O(1) attach/detach. An entity with no parent and no children has none. Sibling order is walk order, decided by HierarchyOperations::setParent.


The documentation for this struct was generated from the following file: