public void Add(Dictionary <ResourceType, int> additional) { AllTypes.ForEach(e => { if (additional.ContainsKey(e)) { Values[e] += additional[e]; } }); }
public void Clear() { AllTypes.ForEach(e => Values[e] = 0); }
public void Add(Resources additional) { AllTypes.ForEach(e => Values[e] += additional[e]); }
public void Substract(Resources price) { AllTypes.ForEach(e => Values[e] -= price[e]); }