From bff56e9e399fc3894f623973db302663f8d757ac Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Fri, 26 Apr 2024 21:19:08 -0400 Subject: [PATCH] Started command system --- Editor/src/Commands/CommandBuffer.h | 17 +++++++++++++++++ Editor/src/Commands/Commands/Commands.h | 23 +++++++++++++++++++++++ Editor/src/Commands/ICommand.h | 11 +++++++++++ 3 files changed, 51 insertions(+) create mode 100644 Editor/src/Commands/CommandBuffer.h create mode 100644 Editor/src/Commands/Commands/Commands.h create mode 100644 Editor/src/Commands/ICommand.h diff --git a/Editor/src/Commands/CommandBuffer.h b/Editor/src/Commands/CommandBuffer.h new file mode 100644 index 0000000..91c48a6 --- /dev/null +++ b/Editor/src/Commands/CommandBuffer.h @@ -0,0 +1,17 @@ +#pragma once + +#include + +namespace NuakeEditor +{ + class CommandBuffer + { + private: + + public: + CommandBuffer(); + ~CommandBuffer(); + + + }; +} \ No newline at end of file diff --git a/Editor/src/Commands/Commands/Commands.h b/Editor/src/Commands/Commands/Commands.h new file mode 100644 index 0000000..086ebd0 --- /dev/null +++ b/Editor/src/Commands/Commands/Commands.h @@ -0,0 +1,23 @@ +#pragma once +#include "../ICommand.h" + +namespace NuakeEditor { + + class SaveSceneCommand : ICommand + { + public: + void Execute() override; + }; + + class SaveProjectCommand : ICommand + { + public: + void Execute() override; + }; + + class SaveProjectCommand : ICommand + { + public: + void Execute() override; + }; +} \ No newline at end of file diff --git a/Editor/src/Commands/ICommand.h b/Editor/src/Commands/ICommand.h new file mode 100644 index 0000000..1dc7c25 --- /dev/null +++ b/Editor/src/Commands/ICommand.h @@ -0,0 +1,11 @@ +#pragma once + +namespace NuakeEditor +{ + class ICommand + { + public: + virtual void Execute() = 0; + virtual void Undo() = 0; + }; +} \ No newline at end of file