public void TrashItem(PGISlotItem item, PGIModel inv, PGISlot slot)
 {
     //This helper method will handle all of the magic for us.
     //It makes sure the item is unequipped and removed from the inventory
     //and triggers all of the necessary events.
     inv.Drop(item);
 }
Exemple #2
0
 public void TrashItem(PGISlotItem item, PGIModel inv, PGISlot slot)
 {
     //This helper method will handle all of the magic for us.
     //It makes sure the item is unequipped and removed from the inventory
     //and triggers all of the necessary events.
     inv.Drop(item);
     PGIModel.PostMovementEvents(item, null, slot.CorrespondingCell.Model); //this is a workaround for the fact that the item doesn't have a model currently due to the way drag n drop works
 }