Table of Contents

Class TogglingRadioEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

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

player Player
radio RadioItem
newState bool
isAllowed bool

Properties

IsAllowed

Gets or sets a value indicating whether the radio can be turned on or off.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

NewState

Gets a value indicating whether the radio is being turned on or off.

public bool NewState { get; }

Property Value

bool

Player

Gets the player who's using the radio.

public Player Player { get; }

Property Value

Player

Radio

Gets the Radio which is being used.

public Radio Radio { get; }

Property Value

Radio