hedgewars/uFLNetProtocol.pas
branchqmlfrontend
changeset 11441 908aed8525f9
parent 11440 330c14f4ba69
child 11442 6b04a266feee
equal deleted inserted replaced
11440:330c14f4ba69 11441:908aed8525f9
   290 begin
   290 begin
   291     isInRoom:= false;
   291     isInRoom:= false;
   292     sendUI(mtMoveToLobby, nil, 0);
   292     sendUI(mtMoveToLobby, nil, 0);
   293 end;
   293 end;
   294 
   294 
   295 procedure handler_LEFT(var p: TCmdParamS);
   295 procedure handler_LEFT(var p: TCmdParamSL);
   296 begin
   296 begin
   297     sendUI(mtRemoveLobbyClient, @p.str1[1], length(p.str1));
   297     p.str2:= p.str1 + #10 + p.str2;
   298 end;
   298     sendUI(mtRemoveRoomClient, @p.str2[1], length(p.str2));
   299 
       
   300 procedure handler_LEFT_s(var s: TCmdParamS);
       
   301 begin
       
   302 end;
   299 end;
   303 
   300 
   304 procedure handler_LOBBY_JOINED(var p: TCmdParam);
   301 procedure handler_LOBBY_JOINED(var p: TCmdParam);
   305 begin
   302 begin
   306 end;
   303 end;
   462     PHandler(@handler_CONNECTED), PHandler(@handler_EM), PHandler(@handler_EM_s),
   459     PHandler(@handler_CONNECTED), PHandler(@handler_EM), PHandler(@handler_EM_s),
   463     PHandler(@handler_ERROR), PHandler(@handler_HH_NUM),
   460     PHandler(@handler_ERROR), PHandler(@handler_HH_NUM),
   464     PHandler(@handler_HH_NUM_s), PHandler(@handler_INFO), PHandler(@handler_INFO_s),
   461     PHandler(@handler_HH_NUM_s), PHandler(@handler_INFO), PHandler(@handler_INFO_s),
   465     PHandler(@handler_JOINED), PHandler(@handler_JOINED_s),
   462     PHandler(@handler_JOINED), PHandler(@handler_JOINED_s),
   466     PHandler(@handler_JOINING), PHandler(@handler_KICKED), PHandler(@handler_LEFT),
   463     PHandler(@handler_JOINING), PHandler(@handler_KICKED), PHandler(@handler_LEFT),
   467     PHandler(@handler_LEFT_s), PHandler(@handler_LOBBY_JOINED),
   464     PHandler(@handler_LOBBY_JOINED), PHandler(@handler_LOBBY_JOINED_s),
   468     PHandler(@handler_LOBBY_JOINED_s), PHandler(@handler_LOBBY_LEFT),
   465     PHandler(@handler_LOBBY_LEFT), PHandler(@handler_NICK),
   469     PHandler(@handler_NICK), PHandler(@handler_NOTICE), PHandler(@handler_PING),
   466     PHandler(@handler_NOTICE), PHandler(@handler_PING), PHandler(@handler_PING_s),
   470     PHandler(@handler_PING_s), PHandler(@handler_PROTO),
   467     PHandler(@handler_PROTO), PHandler(@handler_REMOVE_TEAM),
   471     PHandler(@handler_REMOVE_TEAM), PHandler(@handler_ROOMS),
   468     PHandler(@handler_ROOMS), PHandler(@handler_ROOMS_s),
   472     PHandler(@handler_ROOMS_s), PHandler(@handler_ROOM_ADD),
   469     PHandler(@handler_ROOM_ADD), PHandler(@handler_ROOM_ADD_s),
   473     PHandler(@handler_ROOM_ADD_s), PHandler(@handler_ROOM_DEL),
   470     PHandler(@handler_ROOM_DEL), PHandler(@handler_ROOM_UPD),
   474     PHandler(@handler_ROOM_UPD), PHandler(@handler_ROOM_UPD_s),
   471     PHandler(@handler_ROOM_UPD_s), PHandler(@handler_ROUND_FINISHED),
   475     PHandler(@handler_ROUND_FINISHED), PHandler(@handler_RUN_GAME),
   472     PHandler(@handler_RUN_GAME), PHandler(@handler_SERVER_AUTH),
   476     PHandler(@handler_SERVER_AUTH), PHandler(@handler_SERVER_MESSAGE),
   473     PHandler(@handler_SERVER_MESSAGE), PHandler(@handler_SERVER_VARS),
   477     PHandler(@handler_SERVER_VARS), PHandler(@handler_TEAM_ACCEPTED),
   474     PHandler(@handler_TEAM_ACCEPTED), PHandler(@handler_TEAM_COLOR),
   478     PHandler(@handler_TEAM_COLOR), PHandler(@handler_TEAM_COLOR_s),
   475     PHandler(@handler_TEAM_COLOR_s), PHandler(@handler_WARNING));
   479     PHandler(@handler_WARNING));
       
   480 
   476 
   481 procedure passNetData(p: pointer); cdecl;
   477 procedure passNetData(p: pointer); cdecl;
   482 begin
   478 begin
   483     handlers[TCmdData(p^).cmd.cmd](TCmdData(p^))
   479     handlers[TCmdData(p^).cmd.cmd](TCmdData(p^))
   484 end;
   480 end;