Merge branch 'main' of https://github.com/antopilo/Nuake
This commit is contained in:
17
Editor/src/Commands/CommandBuffer.h
Normal file
17
Editor/src/Commands/CommandBuffer.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace NuakeEditor
|
||||
{
|
||||
class CommandBuffer
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
CommandBuffer();
|
||||
~CommandBuffer();
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
23
Editor/src/Commands/Commands/Commands.h
Normal file
23
Editor/src/Commands/Commands/Commands.h
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
11
Editor/src/Commands/ICommand.h
Normal file
11
Editor/src/Commands/ICommand.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
namespace NuakeEditor
|
||||
{
|
||||
class ICommand
|
||||
{
|
||||
public:
|
||||
virtual void Execute() = 0;
|
||||
virtual void Undo() = 0;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user