Exemplo n.º 1
0
 public abstract Item CreateItem(Loot loot);
Exemplo n.º 2
0
 public override Item CreateItem(Loot loot)
 {
     return new ClubItem(loot.GetId());
 }
Exemplo n.º 3
0
 /// <summary>
 /// If adding to inventory succeeded (returned true) remove loot from map
 /// </summary>
 /// <param name="loot">Loot to add to inventory</param>
 private void InteractWithObject(Loot loot)
 {
     if (inventory.addToInventory(loot.CreateItem(loot), loot.Stackable))
         Map.RemoveGameObject(loot.GetId());
 }