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); } }
public void AddResource(Resource resource) { throw new NotImplementedException(); }