Exemple #1
0
 /// <summary>
 /// Adds one of a resource to the cache
 /// </summary>
 /// <param name="resource"></param>
 public State AddResource(Resource resource)
 {
     PersonalSupply = PersonalSupply.AddResource(resource, 1);
     return(State);
 }
Exemple #2
0
 /// <summary>
 /// Removes one of the resource from the personal supply
 /// </summary>
 /// <param name="resource"></param>
 /// <param name="count"></param>
 public State RemoveResource(Resource resource, Int32 count)
 {
     PersonalSupply = PersonalSupply.AddResource(resource, -count);
     return(State);
 }