Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
    void UpdateFeatures()
    {
        var features = Markets.GetCalculatedMarketRequirements(Markets.Get(Q, Flagship), Q);

        LastFeatures = Markets.CopyMarketRequirements(features);
    }