Exemplo 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);
     }
 }
Exemplo n.º 2
0
 public void AddResource(Resource resource)
 {
     throw new NotImplementedException();
 }