public long GetStatistic(PlayerMobile pm, Func <PvPProfileHistoryEntry, long> fetch) { if (pm == null || fetch == null) { return(0); } return(Teams.Aggregate(0L, (v, t) => v + GetStatistic(t, pm, fetch))); }
public TeamManager GetWinningTeam() { return(Teams.Aggregate( (bestSoFar, next) => { if (bestSoFar == null || bestSoFar.Score == next.Score) { return null; } return next.Score > bestSoFar.Score ? next : bestSoFar; })); }
public int GetCurrentCapacity() { return(Teams.Aggregate(0, (v, t) => v + t.Count)); }
public int GetMaxCapacity() { return(Teams.Aggregate(0, (v, t) => v + t.MaxCapacity)); }