1 | /* |
1 | /* |
2 | * static char *rcsid_newserver_h = |
2 | * static char *rcsid_newserver_h = |
3 | * "$Id: newserver.h,v 1.2 2006/04/15 22:38:30 root Exp $"; |
3 | * "$Id: newserver.h,v 1.5 2006/08/13 17:16:02 elmex Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
119 | uint32 sound:1; /* does the client want sound */ |
119 | uint32 sound:1; /* does the client want sound */ |
120 | uint32 exp64:1; /* Client wants 64 bit exp data, as well as skill data */ |
120 | uint32 exp64:1; /* Client wants 64 bit exp data, as well as skill data */ |
121 | uint32 newmapcmd:1; /* Send newmap command when entering new map SMACFIGGEN*/ |
121 | uint32 newmapcmd:1; /* Send newmap command when entering new map SMACFIGGEN*/ |
122 | uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */ |
122 | uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */ |
123 | uint32 mapinfocmd:1; /* CF+ return map info and send map change info */ |
123 | uint32 mapinfocmd:1; /* CF+ return map info and send map change info */ |
|
|
124 | uint32 extcmd:1; /* CF+ call into extensions/plugins */ |
124 | uint32 darkness:1; /* True if client wants darkness information */ |
125 | uint32 darkness:1; /* True if client wants darkness information */ |
125 | uint32 image2:1; /* Client wants image2/face2 commands */ |
126 | uint32 image2:1; /* Client wants image2/face2 commands */ |
126 | uint32 update_look:1; /* If true, we need to send the look window */ |
127 | uint32 update_look:1; /* If true, we need to send the look window */ |
127 | uint32 can_write:1; /* Can we write to this socket? */ |
128 | uint32 can_write:1; /* Can we write to this socket? */ |
128 | uint32 has_readable_type:1; /* If true client accept additional text information |
129 | uint32 has_readable_type:1; /* If true client accept additional text information |
… | |
… | |
138 | uint32 ext_mapinfos:1; /* If true client accept additionnal info on maps*/ |
139 | uint32 ext_mapinfos:1; /* If true client accept additionnal info on maps*/ |
139 | /* Below are flags for extedend infos to pass to client |
140 | /* Below are flags for extedend infos to pass to client |
140 | * with S->C mapextended command */ |
141 | * with S->C mapextended command */ |
141 | uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ |
142 | uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ |
142 | |
143 | |
143 | struct mapdef *current_map; /* CF+ current player map */ |
144 | struct mapstruct *current_map; /* CF+ current player map */ |
144 | |
145 | |
145 | /* Below here is information only relevant for old sockets */ |
146 | /* Below here is information only relevant for old sockets */ |
146 | char *comment; /* name or listen comment */ |
147 | char *comment; /* name or listen comment */ |
147 | enum Old_Mode old_mode; |
148 | enum Old_Mode old_mode; |
148 | } NewSocket; |
149 | } NewSocket; |
… | |
… | |
197 | |
198 | |
198 | extern Socket_Info socket_info; |
199 | extern Socket_Info socket_info; |
199 | |
200 | |
200 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
201 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
201 | #define VERSION_SC 1027 |
202 | #define VERSION_SC 1027 |
202 | #define VERSION_INFO "Crossfire Server" |
203 | #define VERSION_INFO "Crossfire+ Server" |
203 | |
204 | |
204 | |
205 | |
205 | |
206 | |
206 | #endif |
207 | #endif |