Files
Nuake/NuakeEditor/Source/Editor/Commands/CommandBuffer.h
2025-01-30 22:41:17 -05:00

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()
{
}
};
}