Class TogglingRadioEventArgs
Contains all information before toggling a radio.
Inheritance
System.Object
TogglingRadioEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class TogglingRadioEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceTogglingRadioEventArgs(Player, RadioItem, Boolean, Boolean)
Initializes a new instance of the TogglingRadioEventArgs class.
Declaration
public TogglingRadioEventArgs(Player player, RadioItem radio, bool newState, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
InventorySystem.Items.Radio.RadioItem | radio | |
System.Boolean | newState | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether the radio can be turned on or off.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
NewState
Gets a value indicating whether the radio is being turned on or off.
Declaration
public bool NewState { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who's using the radio.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Radio
Gets the Radio which is being used.
Declaration
public Radio Radio { get; }
Property Value
Type | Description |
---|---|
Radio |