diff options
Diffstat (limited to 'TileData.h')
-rw-r--r-- | TileData.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; +}; + |