equal
deleted
inserted
replaced
21 #define NETPROTOCOL_H_ |
21 #define NETPROTOCOL_H_ |
22 |
22 |
23 #include "../model/team.h" |
23 #include "../model/team.h" |
24 #include "../model/scheme.h" |
24 #include "../model/scheme.h" |
25 #include "../model/map.h" |
25 #include "../model/map.h" |
|
26 #include "../model/room.h" |
26 |
27 |
27 #include <stddef.h> |
28 #include <stddef.h> |
|
29 |
|
30 // TODO unify naming |
28 |
31 |
29 /** |
32 /** |
30 * Create a new team from this 23-part net message |
33 * Create a new team from this 23-part net message |
31 */ |
34 */ |
32 flib_team *flib_team_from_netmsg(char **parts); |
35 flib_team *flib_team_from_netmsg(char **parts); |
50 * is written to the variable pointed to by outlen. |
53 * is written to the variable pointed to by outlen. |
51 * Returns NULL on error. |
54 * Returns NULL on error. |
52 */ |
55 */ |
53 int flib_netmsg_to_drawnmapdata(char *netmsg, uint8_t **outbuf, size_t *outlen); |
56 int flib_netmsg_to_drawnmapdata(char *netmsg, uint8_t **outbuf, size_t *outlen); |
54 |
57 |
|
58 /** |
|
59 * Create a new room from this 8-part net message |
|
60 */ |
|
61 flib_room *flib_room_from_netmsg(char **params); |
|
62 |
|
63 /** |
|
64 * Create an array of count rooms from count*8 netmessage parts |
|
65 */ |
|
66 flib_room **flib_room_array_from_netmsg(char **params, int count); |
|
67 |
55 #endif /* NETPROTOCOL_H_ */ |
68 #endif /* NETPROTOCOL_H_ */ |