OGL Engine 1.2.0-dev
Loading...
Searching...
No Matches
hierarchy.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "component.hpp"
4#include <set>
5
6namespace Engine::ECS {
11 struct Parent : public Component {
13 };
14
19 struct Children : public Component {
20 std::set<EntityID> ids;
21 };
22}
Définit un component de base dans le cadre d'un ECS.
Definition component.hpp:11
std::uint32_t EntityID
Définition de type pour mieux identifier les EntityID.
Definition defs.hpp:13
Equivalent de la structure parent mais pour gérer les enfants dans une entité
Definition hierarchy.hpp:19
std::set< EntityID > ids
Definition hierarchy.hpp:20
Structure de données qui définit un composant "parent" poru stocker un id vers une entité parente dan...
Definition hierarchy.hpp:11
EntityID id
Definition hierarchy.hpp:12