예제 #1
0
        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;
        }
예제 #2
0
 public WheatField() : base(4, 10, new ResourceAmount(_WheatCost, _LumberCost))
 {
     Yield = new ResourceAmount(_WheatYield, 0);
 }
예제 #3
0
 public LumberMill() : base(3, 15, new ResourceAmount(_WheatCost, _LumberCost))
 {
     Yield = new ResourceAmount(0, _LumberYield);
 }