]> git.bts.cx Git - benzene.git/blob - src/bz/game/tilemap_internal.h
Sprites
[benzene.git] / src / bz / game / tilemap_internal.h
1 #ifndef BZ_GAME_TILEMAP_INTERNAL_H
2 #define BZ_GAME_TILEMAP_INTERNAL_H
3
4 #include <bz/game/tilemap.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 struct BZTilemapTileDefinition {
11 //bool replaceSprite;
12 uint8_t spriteIdx;
13 int height;
14 uint32_t tagsFlag;
15 };
16 typedef struct BZTilemapTileDefinition BZTilemapTileDefinition;
17
18 struct BZTilemapTile {
19 uint8_t spriteIdx;
20 uint8_t tileDefinitionIdx;
21 };
22 typedef struct BZTilemapTile BZTilemapTile;
23
24 struct BZTilemap {
25 size_t width;
26 size_t height;
27 BZIdentifierHash tags[32];
28 BZTilemapTileDefinition tileDefinitions[256];
29 BZTilemapTile tiles[];
30 };
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif