8d4634c18634051f6c38299d245fd12c360416b1
[vrlugburz] / src / tileset.h
1 #ifndef TILESET_H_
2 #define TILESET_H_
3
4 #include "scenefile.h"
5
6 struct tile;
7
8 struct tileset {
9         char *name, *fname;
10
11         struct scenefile scn;   /* scene file containing tile geometry */
12         struct tile *tiles;
13
14         struct tileset *next;
15 };
16
17 int load_tileset(struct tileset *tset, const char *fname);
18 void destroy_tileset(struct tileset *tset);
19
20 struct tileset *get_tileset(const char *fname);
21 void free_all_tilesets(void);
22
23 struct tile *get_tile(struct tileset *tset, int ttype);
24
25 int tile_type(const char *tstr);
26
27 #endif  /* TILESET_H_ */