Exemple #1
0
        /// <summary>
        /// Sets the picking team.
        /// </summary>
        /// <param name="team">The team.</param>
        public async Task SetPickingTeam(Team team)
        {
            switch (team)
            {
            case Team.Red:
                IsRedTurnToPick  = true;
                IsBlueTurnToPick = false;
                break;

            case Team.Blue:
                IsRedTurnToPick  = false;
                IsBlueTurnToPick = true;
                break;
            }

            Log.Write(string.Format("It is the {0} captain's turn to pick.",
                                    (team == Team.Red) ? "RED" : "BLUE"), _logClassType, _logPrefix);

            // Avoid showing this when team is full
            if (_sst.ServerInfo.GetTeam(team).Count != _sst.Mod.Pickup.Teamsize)
            {
                await ShowWhosePick(team);

                await _manager.DisplayAvailablePlayers();
            }
        }