From b31d7a677481b4a09168c43d203bfd6d7badf577 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 25 Oct 2024 17:26:20 +0200 Subject: implement mementos snapshots --- TileData.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'TileData.h') diff --git a/TileData.h b/TileData.h index 87d9003..314466c 100644 --- a/TileData.h +++ b/TileData.h @@ -2,9 +2,20 @@ #include +#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; +}; + -- cgit v1.2.3