From 3ece17f201686342e8aff90148f360245788b234 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Tue, 3 Mar 2020 21:25:56 -0800 Subject: add support for puzzle serialization --- Source/Puzzle.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Puzzle.h') diff --git a/Source/Puzzle.h b/Source/Puzzle.h index c2a8fce..6ba6bc1 100644 --- a/Source/Puzzle.h +++ b/Source/Puzzle.h @@ -45,6 +45,7 @@ struct Cell { std::shared_ptr decoration = nullptr; bool start = false; + // TODO: Top/bottom enum class Dir {NONE, LEFT, RIGHT, UP, DOWN}; Dir end = Dir::NONE; @@ -92,6 +93,8 @@ public: void NewGrid(int newWidth, int newHeight); Pos GetSymmetricalPos(int x, int y) const; + std::string Serialize(); + // private: std::vector> grid; -- cgit 1.4.1