--- deliantra/server/include/map.h 2006/08/15 17:35:50 1.8 +++ deliantra/server/include/map.h 2006/08/26 08:44:06 1.9 @@ -34,6 +34,8 @@ #ifndef MAP_H #define MAP_H +#include "cfperl.h" + /* We set this size - this is to make magic map work properly on * tiled maps. There is no requirement that this matches the * tiled maps size - it just seemed like a reasonable value. @@ -277,7 +279,9 @@ * (or even through the macros), but doing so will completely * break map tiling. */ -struct mapstruct { +struct mapstruct : extendable { + data_type get_dt () const { return DT_MAP; } + struct mapstruct *next; /* Next map, linked list */ char *tmpname; /* Name of temporary file */ char *name; /* Name of map as given by its creator */ @@ -347,8 +351,4 @@ object *part; }; -extern void (*load_original_map_callback)(mapstruct *map); -extern void (*load_temporary_map_callback)(mapstruct *map); -extern void (*clean_temporary_map_callback)(mapstruct *map); - #endif