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(ReferenceHub, UsableItem)
Initializes a new instance of the CancellingItemUseEventArgs class.
public CancellingItemUseEventArgs(ReferenceHub hub, UsableItem item)
Parameters
hubReferenceHubitemUsableItem
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; }