summaryrefslogtreecommitdiff
path: root/src/level.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-03-21 21:48:11 -0600
committercflip <cflip@cflip.net>2022-03-21 22:13:14 -0600
commit52a1ea81be11b8860e7f2b7141fcaf2329630b9f (patch)
tree45f70e7ec23837f520ae658f1e3cceba133f99f7 /src/level.h
parent0b7ad904f819293b5d5e6ab22d40f331ab94eea3 (diff)
Implement simple level saving and loading
For now, it just reads and writes the width, height, and tile data to 'level.non'
Diffstat (limited to 'src/level.h')
-rw-r--r--src/level.h2
1 files changed, 2 insertions, 0 deletions
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;