Class UsingItemCompletedEventArgs
Contains all information before a player uses an item.
public class UsingItemCompletedEventArgs : IDeniableEvent, IUsableEvent, IItemEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
UsingItemCompletedEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
UsingItemCompletedEventArgs(Player, UsableItem)
Initializes a new instance of the UsingItemCompletedEventArgs class.
public UsingItemCompletedEventArgs(Player player, UsableItem item)
Parameters
player
PlayerThe player who's going to use the item.
item
UsableItem
Properties
IsAllowed
Gets or sets a value indicating whether the player can use the 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 using the item.
public Player Player { get; }
Property Value
Usable
Gets the item that the player using.
public Usable Usable { get; }