예제 #1
0
        private void onRoomCreationError(BaseEvent evt)
        {
            Room   room = (Room)evt.Params["room"];
            string text = (string)evt.Params["errorMessage"];

            Log.LogErrorFormatted(this, "Failed to create room {0}. error: {1}", room.Name, text);
            if (mt.TryClearJoinRoomDataIfRoom(room.Name, out var joinRoomData))
            {
                RoomJoinError roomJoinError = default(RoomJoinError);
                roomJoinError.roomName     = joinRoomData.room;
                roomJoinError.errorMessage = text;
                mt.triggerEvent(GameServerEvent.ROOM_JOIN_ERROR, roomJoinError);
            }
            mt.LastRoomTransientData = null;
        }