Esempio n. 1
0
 public static void AddResource(Resource resource)
 {
     var resourceName = resource.Type.ToString();
     if (treasury.ContainsKey(resourceName))
     {
         treasury[resourceName] += resource.Quantity;
     }
     else
     {
         treasury.Add(resourceName, resource.Quantity);
     }
 }
Esempio n. 2
0
 public void AddResource(Resource resource)
 {
     throw new NotImplementedException();
 }