Esempio n. 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));
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public Task <Item> Modify(Guid Playerid, Guid id, [FromBody] ModifiedItem item)
 {
     return(processor.Modify(Playerid, id, item));
 }