diff -r f821f7d727b7 -r 1ed603a54ebd project_files/frontlib/net/netprotocol.h --- a/project_files/frontlib/net/netprotocol.h Wed Jul 18 21:34:49 2012 +0200 +++ b/project_files/frontlib/net/netprotocol.h Thu Jul 19 17:56:38 2012 +0200 @@ -23,9 +23,12 @@ #include "../model/team.h" #include "../model/scheme.h" #include "../model/map.h" +#include "../model/room.h" #include +// TODO unify naming + /** * Create a new team from this 23-part net message */ @@ -52,4 +55,14 @@ */ int flib_netmsg_to_drawnmapdata(char *netmsg, uint8_t **outbuf, size_t *outlen); +/** + * Create a new room from this 8-part net message + */ +flib_room *flib_room_from_netmsg(char **params); + +/** + * Create an array of count rooms from count*8 netmessage parts + */ +flib_room **flib_room_array_from_netmsg(char **params, int count); + #endif /* NETPROTOCOL_H_ */