struct MapObj
{
void * next;
+ uint8_t id; /* Unique identifier of individual map object. */
char type; /* Map object type identifier (see MapObjDef.id). */
struct yx_uint16 pos; /* Coordinate of object on map. */
};
FILE * file);
+/* Free items / monsters in map object chain starting at "item" / "monster". */
+extern void free_items(struct Item * item);
+extern void free_monsters(struct Monster * monster);
/* Get pointer to the map object definition of identifier "def_id". */
extern struct MapObjDef * get_map_obj_def(struct World * world, char def_id);