Esempio n. 1
0
    public override Dictionary <GameData.Resource, float> GetInputs()
    {
        Dictionary <GameData.Resource, float> result = new Dictionary <GameData.Resource, float>();

        DictionnaryModifier.AddToDictionary(result, base.GetInputs());

        //modifier

        return(result);
    }
Esempio n. 2
0
    Dictionary <GameData.Resource, float> GetTrend()
    {
        trends.Clear();

        foreach (KeyValuePair <HexCoordinates, Plant> plant in plants)
        {
            DictionnaryModifier.AddToDictionary(trends, plant.Value.inputs);
            DictionnaryModifier.AddToDictionary(trends, plant.Value.outputs);
        }

        return(trends);
    }
Esempio n. 3
0
 private void ApplyTrend()
 {
     DictionnaryModifier.AddToDictionary(resources, trends);
 }