Class ChangingItemEventArgs
Contains all information before a player's held item changes.
public class ChangingItemEventArgs : IDeniableEvent, IItemEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
ChangingItemEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ChangingItemEventArgs(Player, ItemBase)
Initializes a new instance of the ChangingItemEventArgs class.
public ChangingItemEventArgs(Player player, ItemBase newItem)
Parameters
player
PlayernewItem
ItemBase
Properties
IsAllowed
Gets or sets a value indicating whether the event is allowed to continue.
public bool IsAllowed { get; set; }
Property Value
Item
Gets or sets the new item.
public Item Item { get; set; }
Property Value
Player
Gets the player who's changing the item.
public Player Player { get; }