Class ChargingJailbirdEventArgs
Contains all information before a player starts charging an Jailbird.
public class ChargingJailbirdEventArgs : IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
ChargingJailbirdEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ChargingJailbirdEventArgs(ReferenceHub, ItemBase, bool)
Initializes a new instance of the ChargingJailbirdEventArgs class.
public ChargingJailbirdEventArgs(ReferenceHub player, ItemBase jailbird, bool isAllowed = true)
Parameters
playerReferenceHubThe player who is attempting to charge the Jailbird.
jailbirdItemBaseThe jailbird being charged.
isAllowedboolWhether the item is allowed to be charged.
Properties
IsAllowed
Gets or sets a value indicating whether the Jailbird can be charged.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item that is being charged.
public Item Item { get; }
Property Value
Jailbird
Gets the Jailbird that is being charged.
public Jailbird Jailbird { get; }
Property Value
Player
Gets the Player who's charging an item.
public Player Player { get; }