mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
30 lines
385 B
C++
30 lines
385 B
C++
#pragma once
|
|
#include "ICommand.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace NuakeEditor
|
|
{
|
|
class CommandBuffer
|
|
{
|
|
private:
|
|
std::vector<ICommand> mCommands;
|
|
|
|
public:
|
|
CommandBuffer() : mCommands(std::vector<ICommand>()) {}
|
|
|
|
~CommandBuffer() = default;
|
|
|
|
void PushCommand(ICommand& command)
|
|
{
|
|
command.Execute();
|
|
|
|
mCommands.push_back(command);
|
|
}
|
|
|
|
void PopCommand()
|
|
{
|
|
|
|
}
|
|
};
|
|
} |