summaryrefslogtreecommitdiff
path: root/src/tiledfile.h
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-11 23:00:41 +0100
committerdavidovski <david@davidovski.xyz>2023-07-11 23:00:41 +0100
commit9675503933d488736bb59f81337ab103fc0b2f57 (patch)
tree4398fab135cf83f9e890b5af055f811aeab0eb24 /src/tiledfile.h
parentce892407370be42479bb05e9a2faa60a297c9886 (diff)
implement save on exit for editor
Diffstat (limited to 'src/tiledfile.h')
-rw-r--r--src/tiledfile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tiledfile.h b/src/tiledfile.h
index 906bfdc..d8c98e9 100644
--- a/src/tiledfile.h
+++ b/src/tiledfile.h
@@ -6,6 +6,7 @@ typedef struct TiledMap {
char * tilelayout;
int tileSize;
int atlasSize[2];
+ int tileCount;
Color * atlasData;
} TiledMap;
@@ -18,3 +19,5 @@ void setTiledMapTile(TiledMap tiledMap, int pos[2], char tile);
char getTiledMapTile(TiledMap tiledMap, int pos[2]);
TiledMap loadTiledMap(char * filename);
+
+void saveTiledMap(char * filename, TiledMap tiledMap);