project_files/frontlib/net/netprotocol.h
changeset 7338 1ed603a54ebd
parent 7320 e704706008d4
child 7482 d70a5b0d1190
--- 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 <stddef.h>
 
+// 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_ */