From 52a1ea81be11b8860e7f2b7141fcaf2329630b9f Mon Sep 17 00:00:00 2001 From: cflip Date: Mon, 21 Mar 2022 21:48:11 -0600 Subject: Implement simple level saving and loading For now, it just reads and writes the width, height, and tile data to 'level.non' --- src/level.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/level.h') diff --git a/src/level.h b/src/level.h index 8c95f2f..39b5efd 100644 --- a/src/level.h +++ b/src/level.h @@ -41,6 +41,8 @@ public: void addVehicle(Train&); void toggleTile(int x, int y); + void save() const; + void load(); private: Bitmap& m_tileSprites; int m_width, m_height; -- cgit v1.2.3