Class SwingingEventArgs
Contains all information before a player swings a Jailbird.
public class SwingingEventArgs : IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
SwingingEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
SwingingEventArgs(ReferenceHub, ItemBase, bool)
Initializes a new instance of the SwingingEventArgs class.
public SwingingEventArgs(ReferenceHub player, ItemBase swingItem, bool isAllowed = true)
Parameters
player
ReferenceHubswingItem
ItemBaseThe item being swung.
isAllowed
boolWhether the item can be swung.
Properties
IsAllowed
Gets or sets a value indicating whether the item can be swung.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item that is being swung.
public Item Item { get; }
Property Value
Jailbird
Gets the Jailbird that is being swung.
public Jailbird Jailbird { get; }
Property Value
Player
Gets the Player who's swinging an item.
public Player Player { get; }