示例#1
0
文件: Loot.cs 项目: ZacJ/BroodLord
 public abstract Item CreateItem(Loot loot);
示例#2
0
 public override Item CreateItem(Loot loot)
 {
     return new ClubItem(loot.GetId());
 }
示例#3
0
文件: Toon.cs 项目: ZacJ/BroodLord
 /// <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());
 }