Exemplo n.º 1
0
 public void AddToInventory(HeroImpl hero)
 {
     if (_heroes.Count != maxSlots)
     {
         _heroes.Add(hero);
         UpdateSlots();
     }
 }
Exemplo n.º 2
0
 public void DeleteFromInventory(HeroImpl hero)
 {
     _heroes.Remove(hero);
     UpdateSlots();
 }