vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
hierarchy.h
1#pragma once
2
3#include "ecs/entity.h"
4
5namespace Vkm::Engine {
6
7class Scene;
8
16struct Hierarchy {
20 EntityId nextSibling{};
21 EntityId prevSibling{};
22};
23
37void detachFromHierarchy(Scene& scene, EntityId entity);
38
39} // namespace Vkm::Engine
Central registry managing entities and an open set of component types.
Definition scene.h:29
Names one entity of one Scene, for as long as that slot holds it.
Definition entity.h:23
Component representing parent-child relationships in an entity hierarchy.
Definition hierarchy.h:16
EntityId firstChild
Null at a leaf.
Definition hierarchy.h:18
EntityId lastChild
For O(1) append; null at a leaf.
Definition hierarchy.h:19
EntityId parent
Null at a subtree root.
Definition hierarchy.h:17