Class CancellingItemUseEventArgs
Contains all information before a player cancels usage of an item.
public class CancellingItemUseEventArgs : IDeniableEvent, IUsableEvent, IItemEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
CancellingItemUseEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
CancellingItemUseEventArgs(Player, UsableItem)
Initializes a new instance of the CancellingItemUseEventArgs class.
public CancellingItemUseEventArgs(Player player, UsableItem item)
Parameters
player
PlayerThe player who's stopping the use of an item.
item
UsableItem
Properties
IsAllowed
Gets or sets a value indicating whether the player can cancelling the use of item.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
Player
Gets the player who is cancelling the item.
public Player Player { get; }
Property Value
Usable
Gets the item that the player cancelling.
public Usable Usable { get; }