project_files/frontlib/net/netconn_internal.h
changeset 7338 1ed603a54ebd
parent 7320 e704706008d4
child 7482 d70a5b0d1190
equal deleted inserted replaced
7336:f821f7d727b7 7338:1ed603a54ebd
    24 #ifndef NETCONN_INTERNAL_H_
    24 #ifndef NETCONN_INTERNAL_H_
    25 #define NETCONN_INTERNAL_H_
    25 #define NETCONN_INTERNAL_H_
    26 
    26 
    27 #include "netconn.h"
    27 #include "netconn.h"
    28 #include "netbase.h"
    28 #include "netbase.h"
    29 #include "../model/roomlist.h"
       
    30 #include "../model/map.h"
    29 #include "../model/map.h"
    31 #include "../model/team.h"
    30 #include "../model/team.h"
    32 #include "../model/weapon.h"
    31 #include "../model/weapon.h"
       
    32 #include "../model/room.h"
    33 
    33 
    34 #include <stdbool.h>
    34 #include <stdbool.h>
    35 #include <stdint.h>
    35 #include <stdint.h>
    36 #include <stddef.h>
    36 #include <stddef.h>
    37 
    37 
    42 
    42 
    43 	int netconnState;			// One of the NETCONN_STATE constants
    43 	int netconnState;			// One of the NETCONN_STATE constants
    44 	bool isAdmin;				// Player is server administrator
    44 	bool isAdmin;				// Player is server administrator
    45 
    45 
    46 	flib_metascheme *metaCfg;
    46 	flib_metascheme *metaCfg;
    47 	flib_roomlist roomList;
       
    48 
    47 
    49 	bool isChief;				// Player can modify the current room
    48 	bool isChief;				// Player can modify the current room
    50 	flib_map *map;
    49 	flib_map *map;
    51 	flib_teamlist pendingTeamlist;
    50 	flib_teamlist pendingTeamlist;
    52 	flib_teamlist teamlist;
    51 	flib_teamlist teamlist;
    60 	void (*onConnectedCb)(void *context);
    59 	void (*onConnectedCb)(void *context);
    61 	void *onConnectedCtx;
    60 	void *onConnectedCtx;
    62 
    61 
    63 	void (*onDisconnectedCb)(void *context, int reason, const char *message);
    62 	void (*onDisconnectedCb)(void *context, int reason, const char *message);
    64 	void *onDisconnectedCtx;
    63 	void *onDisconnectedCtx;
       
    64 
       
    65 	void (*onRoomlistCb)(void *context, const flib_room **rooms, int roomCount);
       
    66 	void *onRoomlistCtx;
    65 
    67 
    66 	void (*onRoomAddCb)(void *context, const flib_room *room);
    68 	void (*onRoomAddCb)(void *context, const flib_room *room);
    67 	void *onRoomAddCtx;
    69 	void *onRoomAddCtx;
    68 
    70 
    69 	void (*onRoomDeleteCb)(void *context, const char *name);
    71 	void (*onRoomDeleteCb)(void *context, const char *name);