Exemple #1
0
 public void AddItem(ItemStack.Item itemReference, int amount)
 {
     for (int i = 0; i < amount; i++)
     {
         _itemList.Add(itemReference);
     }
     ItemAdded?.Invoke(itemReference, amount);
 }
Exemple #2
0
 public void UseItem(ItemStack.Item itemReference)
 {
     ItemUsed?.Invoke(itemReference);
 }
Exemple #3
0
 public void UseItem(string internalName)
 {
     ItemStack.Item itemReference = this.GetItem(internalName);
     UseItem(itemReference);
 }
Exemple #4
0
 public void UseItem(int id)
 {
     ItemStack.Item itemReference = this.GetItem(id);
     UseItem(itemReference);
 }
Exemple #5
0
 public void AddItem(string internalName, int amount)
 {
     ItemStack.Item itemReference = _itemStack.GetByInternalName(internalName);
     AddItem(itemReference, amount);
 }
Exemple #6
0
 public void AddItem(int id, int amount)
 {
     ItemStack.Item itemReference = _itemStack.GetById(id);
     AddItem(itemReference, amount);
 }