Beispiel #1
0
 public LootResult(ItemHolder itemHolder, int amount)
 {
     if (itemHolder != null)
     {
         this.item = itemHolder.item;
     }
     this.amount = amount;
 }
Beispiel #2
0
 public Loot()
 {
     this.item   = new ItemHolder();
     this.amount = 1;
     this.weight = 1;
 }
Beispiel #3
0
 public Loot(ItemHolder item, int amount, int weight)
 {
     this.item   = item ?? new ItemHolder();
     this.amount = amount;
     this.weight = weight;
 }