public void Add(Resource resource) { Add(resource.Crop, resource.Gold, resource.Iron, resource.Wood, resource.Labor); Update(); }
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); }