![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
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. | |
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.