diff options
author | davidovski <david@davidovski.xyz> | 2023-07-11 23:00:41 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-11 23:00:41 +0100 |
commit | 9675503933d488736bb59f81337ab103fc0b2f57 (patch) | |
tree | 4398fab135cf83f9e890b5af055f811aeab0eb24 /src/tiledfile.h | |
parent | ce892407370be42479bb05e9a2faa60a297c9886 (diff) |
implement save on exit for editor
Diffstat (limited to 'src/tiledfile.h')
-rw-r--r-- | src/tiledfile.h | 3 |
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); |