]> git.lizzy.rs Git - nothing.git/blob - src/game/level/level_editor/undo_history.h
(#824) Introduce UndoHistory
[nothing.git] / src / game / level / level_editor / undo_history.h
1 #ifndef UNDO_HISTORY_H_
2 #define UNDO_HISTORY_H_
3
4 #include "layer.h"
5
6 typedef struct {
7     LayerPtr layer;
8 } Action;
9
10 typedef struct UndoHistory UndoHistory;
11
12 UndoHistory *create_undo_history(void);
13 void destroy_undo_history(UndoHistory *undo_history);
14
15 void undo_history_push(UndoHistory *undo_history, Action action);
16 void undo_history_pop(UndoHistory *undo_history);
17
18 #endif  // UNDO_HISTORY_H_