void NotifyAboutFeatureDiff2(NewProductFeature[] allfeatures, IEnumerable <GameEntity> competitors) { var reqs = Markets.GetCalculatedMarketRequirements(Markets.Get(Q, Flagship), Q); for (var i = 0; i < LastFeatures.Count; i++) { var feature = allfeatures[i].Name; var was = (int)LastFeatures[i]; var now = (int)reqs[i]; if (now <= was) { continue; } NotifyAboutNewLeader(competitors, feature); } }
void UpdateFeatures() { var features = Markets.GetCalculatedMarketRequirements(Markets.Get(Q, Flagship), Q); LastFeatures = Markets.CopyMarketRequirements(features); }