Table of Contents

Class ChangingRadioPresetEventArgs

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

Contains all information before radio preset is changed.

public class ChangingRadioPresetEventArgs : IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
ChangingRadioPresetEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ChangingRadioPresetEventArgs(Player, RadioItem, RadioRangeLevel, RadioRangeLevel, bool)

Initializes a new instance of the ChangingRadioPresetEventArgs class.

public ChangingRadioPresetEventArgs(Player player, RadioItem item, RadioMessages.RadioRangeLevel oldValue, RadioMessages.RadioRangeLevel newValue, bool isAllowed = true)

Parameters

player Player
item RadioItem

oldValue RadioMessages.RadioRangeLevel
newValue RadioMessages.RadioRangeLevel
isAllowed bool

Properties

IsAllowed

Gets or sets a value indicating whether the radio preset can be changed. Client radio graphics won't sync with OldValue.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

NewValue

Gets or sets the new radio preset value. Client radio graphics won't sync with this value.

public RadioRange NewValue { get; set; }

Property Value

RadioRange

OldValue

Gets the old radio preset value.

public RadioRange OldValue { get; }

Property Value

RadioRange

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