Esempio n. 1
0
 public virtual void ProduceEnergy(ResourcesStorage storage)
 {
     if (storage.SubtractProduct(Resource, ConsumedResources) is var subtractProduct && subtractProduct)
     {
         storage.StoreProducts(ProducedUnitType, ProducedUnit);
     }
 }
 public override void ResourcesMining(ResourcesStorage storage)
 {
     storage.StoreProducts(Resource, ProduceResources / 7);
 }
Esempio n. 3
0
 public virtual void ResourcesMining(ResourcesStorage storage)
 {
     storage.StoreProducts(Resource, ProduceResources);
 }