示例#1
0
        /// <summary>
        /// Add a round victory to a given team's score.
        /// </summary>
        /// <param name="team">The team to award a round win to.</param>
        public void AddRoundWin(GameSession.Alliance team)
        {
            if (team == GameSession.Alliance.NONE)
                return;

            //Red is 1, Blue is 2
            if (team == GameSession.Alliance.RED)
            {
                team1stats.roundWins++;
            }
            else if (team == GameSession.Alliance.BLUE)
            {
                team2stats.roundWins++;
            }

            drawingRoundWinner = true;
            roundWinningTeam = team.ToString().ToLower();
        }