Exemple #1
0
 public Task <Item> Modify(Guid PlayerId, Guid id, ModifiedItem item)
 {
     if (item.ItemType == "Sword" && item.player.Level < 3)
     {
         throw new RuleNotFollowedException();
     }
     return(repo.Modify(PlayerId, id, item));
 }
 public Task <Item> Modify(Guid Playerid, Guid id, ModifiedItem item)
 {
     foreach (Item i in itemList)
     {
         if (i.ItemID == id)
         {
             i.OwningPlayer = item.player.Id;
             return(Task.FromResult(i));
         }
     }
     return(null);
 }
 public Task <Item> Modify(Guid Playerid, Guid id, [FromBody] ModifiedItem item)
 {
     return(processor.Modify(Playerid, id, item));
 }