project_files/frontlib/net/netconn_internal.h
changeset 7338 1ed603a54ebd
parent 7320 e704706008d4
child 7482 d70a5b0d1190
--- a/project_files/frontlib/net/netconn_internal.h	Wed Jul 18 21:34:49 2012 +0200
+++ b/project_files/frontlib/net/netconn_internal.h	Thu Jul 19 17:56:38 2012 +0200
@@ -26,10 +26,10 @@
 
 #include "netconn.h"
 #include "netbase.h"
-#include "../model/roomlist.h"
 #include "../model/map.h"
 #include "../model/team.h"
 #include "../model/weapon.h"
+#include "../model/room.h"
 
 #include <stdbool.h>
 #include <stdint.h>
@@ -44,7 +44,6 @@
 	bool isAdmin;				// Player is server administrator
 
 	flib_metascheme *metaCfg;
-	flib_roomlist roomList;
 
 	bool isChief;				// Player can modify the current room
 	flib_map *map;
@@ -63,6 +62,9 @@
 	void (*onDisconnectedCb)(void *context, int reason, const char *message);
 	void *onDisconnectedCtx;
 
+	void (*onRoomlistCb)(void *context, const flib_room **rooms, int roomCount);
+	void *onRoomlistCtx;
+
 	void (*onRoomAddCb)(void *context, const flib_room *room);
 	void *onRoomAddCtx;