コード例 #1
0
ファイル: BotThread.cs プロジェクト: Acanguven/HFL-Remastered
        private async void createLobby()
        {
            Logger.Push("Creating lobby for the team", "info", username);
            LobbyStatus newLobby;

            if (queue == QueueTypes.INTRO_BOT)
            {
                double lobbyQueue = (double)queue;
                newLobby = await connection.createArrangedBotTeamLobby(lobbyQueue, "INTRO");
            }
            else if (queue == QueueTypes.BEGINNER_BOT)
            {
                double lobbyQueue = (double)queue;
                newLobby = await connection.createArrangedBotTeamLobby(lobbyQueue, "EASY");
            }
            else if (queue == QueueTypes.MEDIUM_BOT)
            {
                double lobbyQueue = (double)queue;
                newLobby = await connection.createArrangedBotTeamLobby(lobbyQueue, "MEDIUM");
            }
            else
            {
                double lobbyQueue = (double)queue;
                newLobby = await connection.CreateArrangedTeamLobby(lobbyQueue);
            }
            if (newLobby != null)
            {
                lobbyReady = true;
                Logger.Push("Lobby created successfully", "info", username);
                lobbyInviteUpdate();
                smurf.updateTimer(20);
            }
        }