コード例 #1
0
        private void onRoomFull(GameServerEvent evt, object data)
        {
            removeSFSListeners();
            RoomJoinError roomJoinError = (RoomJoinError)data;

            errorHandler.onRoomFull();
        }
コード例 #2
0
        private static bool onPostRoomPlayersErrorMapper(NetworkErrorType errorType, IJoinIglooErrorHandler handler)
        {
            switch (errorType)
            {
            case NetworkErrorType.CP_ROOM_FULL:
                handler.onRoomFull();
                return(true);

            case NetworkErrorType.CP_NO_SERVER_FOUND:
                handler.onNoServerFound();
                return(true);

            case NetworkErrorType.CP_IGLOO_WRONG_ROOM:
                handler.onRoomChanged();
                return(true);

            case NetworkErrorType.CP_IGLOO_UNAVAILABLE:
                handler.onIglooNotAvailable();
                return(true);

            default:
                return(false);
            }
        }