Class ChangingRadioPresetEventArgs
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
Playeritem
RadioItemoldValue
RadioMessages.RadioRangeLevelnewValue
RadioMessages.RadioRangeLevelisAllowed
bool
Properties
IsAllowed
Gets or sets a value indicating whether the radio preset can be changed.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
NewValue
Gets or sets the new radio preset value.
public RadioRange NewValue { get; set; }
Property Value
OldValue
Gets the old radio preset value.
public RadioRange OldValue { 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; }