예제 #1
0
파일: ClubLoot.cs 프로젝트: ZacJ/BroodLord
 public override Item CreateItem(Loot loot)
 {
     return new ClubItem(loot.GetId());
 }
예제 #2
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());
 }