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; |