Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
EntityCommands.hpp
1#pragma once
2
3#include <entt/entt.hpp>
4#include "CommandList.hpp"
5#include "ComponentCommands.hpp"
6
7namespace Grindstone {
8 namespace SceneManagement {
9 class Scene;
10 }
11
12 namespace Editor {
14 public:
16 virtual void Redo() override;
17 virtual void Undo() override;
18 virtual ~AddEntityCommand() {}
19 public:
21 ECS::EntityHandle entityId;
22 };
23
25 public:
26 virtual void Redo() override;
27 virtual void Undo() override;
28 virtual ~DeleteEntityCommand() {}
29 private:
30 entt::registry& registry;
31 ECS::EntityHandle entityId;
32 std::vector<AddComponentCommand> componentCommands;
33 };
34 }
35}
Definition EntityCommands.hpp:13
Definition CommandList.hpp:13
Definition EntityCommands.hpp:24
Definition Scene.hpp:21