Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
123456789101112131415161718#pragma once#include "Command.h"#include <memory>#include <vector>
class HistoryManager {private: std::vector<std::unique_ptr<Command>> history; long int cursor = -1;public: void Clear(); json GetEvents(); void Execute(std::unique_ptr<Command> command); void Undo(); void Redo(); bool CanUndo(); bool CanRedo();};