Class ItemAddedEventArgs
Contains all information after adding an item to a player's inventory.
public class ItemAddedEventArgs : IItemEvent, IPlayerEvent, IPickupEvent, IExiledEvent
- Inheritance
-
ItemAddedEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ItemAddedEventArgs(ReferenceHub, ItemBase, ItemPickupBase)
Initializes a new instance of the ItemAddedEventArgs class.
public ItemAddedEventArgs(ReferenceHub referenceHub, ItemBase itemBase, ItemPickupBase pickupBase)
Parameters
referenceHub
ReferenceHubThe ReferenceHub the item was added to.
itemBase
ItemBaseThe added InventorySystem.Items.ItemBase.
pickupBase
ItemPickupBaseThe InventorySystem.Items.Pickups.ItemPickupBase the InventorySystem.Items.ItemBase originated from, or null if the item was not picked up.
Properties
Item
Gets the item that was added.
public Item Item { get; }
Property Value
Pickup
Gets the pickup that the item originated from or null if the item was not picked up.
public Pickup Pickup { get; }
Property Value
Player
Gets the player that had the item added.
public Player Player { get; }