--- deliantra/server/include/newserver.h 2006/02/03 07:12:49 1.1 +++ deliantra/server/include/newserver.h 2006/08/24 10:58:38 1.9 @@ -47,6 +47,8 @@ short faces[MAP_LAYERS]; uint16 smooth[MAP_LAYERS]; int count; /* This is really darkness in the map1 command */ + unsigned char stat_hp; // health of something in this space, or 0 + tag_t player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient }; /* This basically defines the largest size an @@ -119,6 +121,11 @@ uint32 sound:1; /* does the client want sound */ uint32 exp64:1; /* Client wants 64 bit exp data, as well as skill data */ uint32 newmapcmd:1; /* Send newmap command when entering new map SMACFIGGEN*/ + uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */ + uint32 mapinfocmd:1; /* CF+ return map info and send map change info */ + uint32 extcmd:1; /* CF+ call into extensions/plugins */ + uint32 extmap:1; /* CF+ extend map comamnd with extra data */ + uint32 buggy_mapscroll:1; /* CF+ client crashes on large mapscrolls */ uint32 darkness:1; /* True if client wants darkness information */ uint32 image2:1; /* Client wants image2/face2 commands */ uint32 update_look:1; /* If true, we need to send the look window */ @@ -138,6 +145,10 @@ * with S->C mapextended command */ uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ + struct mapstruct *current_map; // CF+ last/current player map + int current_x, current_y; // CF+ last/current map position + char client[64]; // CF+ client name/version + /* Below here is information only relevant for old sockets */ char *comment; /* name or listen comment */ enum Old_Mode old_mode; @@ -195,8 +206,6 @@ #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ #define VERSION_SC 1027 -#define VERSION_INFO "Crossfire Server" - - +#define VERSION_INFO "Crossfire+ Server" #endif