Class TogglingRadioEventArgs
Contains all information before toggling a radio.
public class TogglingRadioEventArgs : IDeniableEvent, IItemEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
TogglingRadioEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
TogglingRadioEventArgs(Player, RadioItem, bool, bool)
Initializes a new instance of the TogglingRadioEventArgs class.
public TogglingRadioEventArgs(Player player, RadioItem radio, bool newState, bool isAllowed = true)
Parameters
Properties
IsAllowed
Gets or sets a value indicating whether the radio can be turned on or off.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
NewState
Gets a value indicating whether the radio is being turned on or off.
public bool NewState { get; }
Property Value
Player
Gets the player who's using the radio.
public Player Player { get; }
Property Value
Radio
Gets the Radio which is being used.
public Radio Radio { get; }