예제 #1
0
 public TunnelHandler(ArenaClientForm form)
 {
     this.Form = form;
 }
예제 #2
0
            public SessionHandler(ArenaClientForm form)
            {
                this.Form = form;

                Delegators[Protocol1Constants.SERVER_PORTAL] = new MessageDelegate(ServerPortalHandler);
                Delegators[Protocol1Constants.SERVER_ARENA] = new MessageDelegate(ServerArenaHandler);
                Delegators[Protocol1Constants.COMMAND_LOGIN] = new MessageDelegate(LoginHandler);
                Delegators[Protocol1Constants.COMMAND_CHAT] = new MessageDelegate(ChatHandler);
                Delegators[Protocol1Constants.COMMAND_PINGBACK] = new MessageDelegate(PingBackHandler);
                Delegators[Protocol1Constants.COMMAND_INFORM_PING] = new MessageDelegate(InformPingHandler);
                Delegators[Protocol1Constants.COMMAND_SERVER_STATUS] = new MessageDelegate(ServerStatusHandler);
                Delegators[Protocol1Constants.NOTIFY_USER_ENTERED] = new MessageDelegate(NotifyUserEnteredHandler);
                Delegators[Protocol1Constants.NOTIFY_USER_EXITED] = new MessageDelegate(NotifyUserExitedHandler);
                Delegators[Protocol1Constants.NOTIFY_USER_LIST] = new MessageDelegate(NotifyUserListHandler);
                Delegators[Protocol1Constants.NOTIFY_ROOM_CREATED] = new MessageDelegate(NotifyRoomCreatedHandler);
                Delegators[Protocol1Constants.NOTIFY_ROOM_DELETED] = new MessageDelegate(NotifyRoomDeletedHandler);
                Delegators[Protocol1Constants.NOTIFY_ROOM_LIST] = new MessageDelegate(NotifyRoomListHandler);
                Delegators[Protocol1Constants.NOTIFY_ROOM_UPDATED] = new MessageDelegate(NotifyRoomUpdatedHandler);
                //Delegators[Protocol1Constants.NOTIFY_ROOM_PLAYER_KICKED] = new MessageDelegate(NotifyRoomKickedHandler);
                Delegators[Protocol1Constants.COMMAND_ROOM_CREATE] = new MessageDelegate(CommandRoomCreateHandler);
                Delegators[Protocol1Constants.COMMAND_ROOM_UPDATE] = new MessageDelegate(CommandRoomUpdateHandler);
                Delegators[Protocol1Constants.COMMAND_ROOM_DELETE] = new MessageDelegate(CommandRoomDeleteHandler);
                Delegators[Protocol1Constants.COMMAND_ROOM_ENTER] = new MessageDelegate(CommandRoomEnterHandler);
                Delegators[Protocol1Constants.COMMAND_ROOM_EXIT] = new MessageDelegate(CommandRoomExitHandler);
                Delegators[Protocol1Constants.COMMAND_ROOM_KICK_PLAYER] = new MessageDelegate(CommandRoomKickPlayerHandler);
                Delegators[Protocol1Constants.COMMAND_INFORM_TUNNEL_UDP_PORT] = new MessageDelegate(InformTunnelPortHandler);
                Delegators[Protocol1Constants.ERROR_VERSION_MISMATCH] = new MessageDelegate(ErrorVersionMismatch);
                Delegators[Protocol1Constants.ERROR_LOGIN_DUPLICATED_NAME] = new MessageDelegate(ErrorLoginDuplicatedNameHandler);
                Delegators[Protocol1Constants.ERROR_LOGIN_BEYOND_CAPACITY] = new MessageDelegate(ErrorLoginBeyondCapacityHandler);
                Delegators[Protocol1Constants.NOTIFY_ROOM_PASSWORD_REQUIRED] = new MessageDelegate(NotifyRoomPasswordRequiredHandler);
                Delegators[Protocol1Constants.ERROR_ROOM_ENTER_PASSWORD_FAIL] = new MessageDelegate(ErrorRoomEnterPasswordFailHandler);
                Delegators[Protocol1Constants.ERROR_ROOM_ENTER_BEYOND_CAPACITY] = new MessageDelegate(ErrorRoomEnterBeyondCapacityHandler);
                Delegators[Protocol1Constants.ERROR_ROOM_CREATE_BEYOND_LIMIT] = new MessageDelegate(ErrorRoomCreateBeyondLimitHandler);
            }