7 #define DEF_CELL_SIZE 3.0f
30 struct meshgroup mgrp;
38 int tiletype, tilerot;
43 struct meshgroup *mgrp;
50 char *fname, *dirname;
53 int px, py; /* player start position */
59 /* meshes owned by the level, constructed during geometry generation or
60 * loaded, excluding meshes in tiles scenefiles
62 struct mesh *meshlist;
68 int init_level(struct level *lvl, int xsz, int ysz);
69 void destroy_level(struct level *lvl);
71 int load_level(struct level *lvl, const char *fname);
72 int save_level(struct level *lvl, const char *fname);
74 struct tile *find_level_tile(struct level *lvl, int type);
76 int gen_cell_geom(struct level *lvl, struct cell *cell);
77 int gen_level_geom(struct level *lvl);
79 int get_cell_type(struct level *lvl, int x, int y);