equal
deleted
inserted
replaced
39 flib_netbase *netBase; |
39 flib_netbase *netBase; |
40 char *playerName; |
40 char *playerName; |
41 char *dataDirPath; |
41 char *dataDirPath; |
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 |
|
45 |
44 |
46 bool isChief; // Player can modify the current room |
45 bool isChief; // Player can modify the current room |
47 flib_map *map; |
46 flib_map *map; |
48 flib_teamlist pendingTeamlist; |
47 flib_teamlist pendingTeamlist; |
49 flib_teamlist teamlist; |
48 flib_teamlist teamlist; |
70 void *onRoomDeleteCtx; |
69 void *onRoomDeleteCtx; |
71 |
70 |
72 void (*onRoomUpdateCb)(void *context, const char *oldName, const flib_room *room); |
71 void (*onRoomUpdateCb)(void *context, const char *oldName, const flib_room *room); |
73 void *onRoomUpdateCtx; |
72 void *onRoomUpdateCtx; |
74 |
73 |
|
74 void (*onClientFlagsCb)(void *context, const char *nick, const char *flags, bool newFlagState); |
|
75 void *onClientFlagsCtx; |
|
76 |
75 void (*onChatCb)(void *context, const char *nick, const char *msg); |
77 void (*onChatCb)(void *context, const char *nick, const char *msg); |
76 void *onChatCtx; |
78 void *onChatCtx; |
77 |
79 |
78 void (*onLobbyJoinCb)(void *context, const char *nick); |
80 void (*onLobbyJoinCb)(void *context, const char *nick); |
79 void *onLobbyJoinCtx; |
81 void *onLobbyJoinCtx; |
90 void (*onNickTakenCb)(void *context, const char *nick); |
92 void (*onNickTakenCb)(void *context, const char *nick); |
91 void *onNickTakenCtx; |
93 void *onNickTakenCtx; |
92 |
94 |
93 void (*onPasswordRequestCb)(void *context, const char *nick); |
95 void (*onPasswordRequestCb)(void *context, const char *nick); |
94 void *onPasswordRequestCtx; |
96 void *onPasswordRequestCtx; |
95 |
|
96 void (*onRoomChiefStatusCb)(void *context, bool isChief); |
|
97 void *onRoomChiefStatusCtx; |
|
98 |
|
99 void (*onReadyStateCb)(void *context, const char *nick, bool ready); |
|
100 void *onReadyStateCtx; |
|
101 |
97 |
102 void (*onEnterRoomCb)(void *context, bool chief); |
98 void (*onEnterRoomCb)(void *context, bool chief); |
103 void *onEnterRoomCtx; |
99 void *onEnterRoomCtx; |
104 |
100 |
105 void (*onLeaveRoomCb)(void *context, int reason, const char *message); |
101 void (*onLeaveRoomCb)(void *context, int reason, const char *message); |
136 void *onScriptChangedCtx; |
132 void *onScriptChangedCtx; |
137 |
133 |
138 void (*onWeaponsetChangedCb)(void *context, const flib_weaponset *weaponset); |
134 void (*onWeaponsetChangedCb)(void *context, const flib_weaponset *weaponset); |
139 void *onWeaponsetChangedCtx; |
135 void *onWeaponsetChangedCtx; |
140 |
136 |
141 void (*onAdminAccessCb)(void *context); |
|
142 void *onAdminAccessCtx; |
|
143 |
|
144 void (*onServerVarCb)(void *context, const char *name, const char *value); |
137 void (*onServerVarCb)(void *context, const char *name, const char *value); |
145 void *onServerVarCtx; |
138 void *onServerVarCtx; |
146 |
139 |
147 bool running; |
140 bool running; |
148 bool destroyRequested; |
141 bool destroyRequested; |