Пример #1
0
 public void Add(Resource resource)
 {
     Add(resource.Crop, resource.Gold, resource.Iron, resource.Wood, resource.Labor);
     Update();
 }
Пример #2
0
 public bool HasEnough(Resource cost)
 {
     return(Crop.Value >= cost.Crop && Gold.Value >= cost.Gold && Wood.Value >= cost.Wood &&
            Iron.Value >= cost.Iron && Labor.Value >= cost.Labor);
 }