static bool CheckForCandidates(Matching.IBattleEntry current, Matching.IBattleEntry target) { if (LimitRatingRange <= MathF.Abs(target.RatingAvg - current.RatingAvg)) { return(false); } return(true); }
public bool CanAdd(Matching.IBattleEntry entry) { if (evolib.Battle.SidePlayersNum < (PlayersCount + entry.Players.Count)) { return(false); } return(true); }
public void Add(Matching.IBattleEntry entry) { Entries.Add(entry); var groupSize = entry.Players.Count; PlayersCount += groupSize; if (MaxGroupSize < groupSize) { MaxGroupSize = groupSize; } RatingSum += entry.RatingSum; }