… | |
… | |
98 | ST_GET_PARTY_PASSWORD, |
98 | ST_GET_PARTY_PASSWORD, |
99 | }; |
99 | }; |
100 | |
100 | |
101 | // a handler for a specific type of packet |
101 | // a handler for a specific type of packet |
102 | enum { |
102 | enum { |
103 | PF_PLAYER = 0x01, // must have valid player / will by synchronised |
103 | PF_PLAYER = 0x01, // must have valid player / will by synchronised |
104 | PF_PLAYING = 0x02, // must be in playing state |
104 | PF_PLAYING = 0x02, // must be in playing state |
|
|
105 | PF_COMMAND0 = 0x04, // command starts at offset 0 |
|
|
106 | PF_COMMAND6 = 0x08, // command starts at offset 6 |
105 | }; |
107 | }; |
106 | |
108 | |
107 | struct packet_type |
109 | struct packet_type |
108 | { |
110 | { |
109 | const char *name; |
111 | const char *name; |
… | |
… | |
220 | uint8 ACC (RW, mapx), ACC (RW, mapy); /* How large a map the client wants */ |
222 | uint8 ACC (RW, mapx), ACC (RW, mapy); /* How large a map the client wants */ |
221 | uint8 ACC (RW, itemcmd); /* What version of the 'item' protocol command to use */ |
223 | uint8 ACC (RW, itemcmd); /* What version of the 'item' protocol command to use */ |
222 | uint8 ACC (RW, faceset); /* Set the client is using, default 0 */ |
224 | uint8 ACC (RW, faceset); /* Set the client is using, default 0 */ |
223 | |
225 | |
224 | maptile *ACC (RW, current_map); // CF+ last/current player map |
226 | maptile *ACC (RW, current_map); // CF+ last/current player map |
|
|
227 | region *ACC (RW, current_region); // CF+ last/current player region |
225 | int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position |
228 | int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position |
226 | char ACC (RW, version)[64]; // CF+ client name/version |
229 | char ACC (RW, version)[64]; // CF+ client name/version |
227 | |
230 | |
228 | player_ptr ACC (RO, pl); |
231 | player_ptr ACC (RO, pl); |
229 | |
232 | |