Copperfield Engine 0.1
C++ Game Engine
Loading...
Searching...
No Matches
entity.hpp
1#pragma once
2
3class EntityCmp {
4public:
5 friend class ComponentManager;
6 friend class Window;
7 friend class Renderer;
8
9 EntityCmp(const EntityCmp* parent, const unsigned id)
10 : parent_(parent), id_(id) {}
11
12 explicit operator unsigned() const {return id_;}
13
14private:
15 const EntityCmp* parent_;
16 unsigned id_;
17 std::vector<EntityCmp*> children_;
18};
Handles anything related to entities and components in the engine.
Definition: component_manager.hpp:29
Class used to render the scene.
Definition: renderer.hpp:49
Creates and updates a window.
Definition: window.hpp:20