Skip to content

Commit

Permalink
Started command system
Browse files Browse the repository at this point in the history
  • Loading branch information
antopilo committed Apr 27, 2024
1 parent 05d7fc1 commit bff56e9
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Editor/src/Commands/CommandBuffer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#pragma once

#include <vector>

namespace NuakeEditor
{
class CommandBuffer
{
private:

public:
CommandBuffer();
~CommandBuffer();


};
}
23 changes: 23 additions & 0 deletions Editor/src/Commands/Commands/Commands.h
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions Editor/src/Commands/ICommand.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once

namespace NuakeEditor
{
class ICommand
{
public:
virtual void Execute() = 0;
virtual void Undo() = 0;
};
}

0 comments on commit bff56e9

Please sign in to comment.