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); }
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); }
private void ApplyTrend() { DictionnaryModifier.AddToDictionary(resources, trends); }