17 #ifndef HEADER_SUPERTUX_EDITOR_UNDO_MANAGER_HPP 18 #define HEADER_SUPERTUX_EDITOR_UNDO_MANAGER_HPP 32 void try_snapshot(
Level& level);
34 std::unique_ptr<Level> undo();
35 std::unique_ptr<Level> redo();
37 bool has_unsaved_changes()
const 39 return m_index_pos != 1;
48 void push_undo_stack(std::string&& level_snapshot);
50 void debug_print(
const char* action);
53 size_t m_max_snapshots;
55 std::vector<std::string> m_undo_stack;
56 std::vector<std::string> m_redo_stack;
Represents a collection of Sectors running in a single GameSession.
Definition: level.hpp:29
Definition: undo_manager.hpp:26