PRoConEvents.MULTIbalancer.GetTeamPoints C# (CSharp) Method

GetTeamPoints() private method

private GetTeamPoints ( int team ) : double
team int
return double
        private double GetTeamPoints(int team)
        {
            double total = 0;
            List<String> dup = new List<String>();
            // copy player name list
            lock (fAllPlayers) {
            dup.AddRange(fAllPlayers);
            }
            // sum up player points for specified team
            foreach (String name in dup) {
            PlayerModel player = GetPlayer(name);
            if (player.Team != team) continue;
            total = total + player.ScoreRound;
            }
            return total;
        }
MULTIbalancer