public Building(int capacity, int strain, ResourceAmount cost = null) { Workers = new List <Worker>(capacity); StaminaStrain = strain; if (cost == null) { cost = new ResourceAmount(); } Resources.SettleCost(cost); IsActive = true; }
public WheatField() : base(4, 10, new ResourceAmount(_WheatCost, _LumberCost)) { Yield = new ResourceAmount(_WheatYield, 0); }
public LumberMill() : base(3, 15, new ResourceAmount(_WheatCost, _LumberCost)) { Yield = new ResourceAmount(0, _LumberYield); }