aboutsummaryrefslogtreecommitdiff
path: root/TileData.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-25 17:26:20 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-25 17:26:20 +0200
commitb31d7a677481b4a09168c43d203bfd6d7badf577 (patch)
tree13550fa7f33d21aea8a7b03981707db2c08fc9a2 /TileData.h
parentc9f5ac8722190efeb58fda1eec9e6160d5204127 (diff)
implement mementos snapshots
Diffstat (limited to 'TileData.h')
-rw-r--r--TileData.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/TileData.h b/TileData.h
index 87d9003..314466c 100644
--- a/TileData.h
+++ b/TileData.h
@@ -2,9 +2,20 @@
#include <string>
+#include "Memento.h"
+
struct TileData {
unsigned int x = 0;
unsigned int y = 0;
std::string type = "";
};
+class TileDataMemento : public Memento {
+ friend class Canvas;
+
+public:
+ TileDataMemento(const TileData & data) : data(data) {}
+private:
+ TileData data;
+};
+