Class UsingRadioBatteryEventArgs
Contains all information before radio battery charge is changed.
public class UsingRadioBatteryEventArgs : IDeniableEvent, IItemEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
UsingRadioBatteryEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
UsingRadioBatteryEventArgs(RadioItem, Player, float, bool)
Initializes a new instance of the UsingRadioBatteryEventArgs class.
public UsingRadioBatteryEventArgs(RadioItem radio, Player player, float drain, bool isAllowed = true)
Parameters
Properties
Drain
Gets or sets the radio battery drain per second.
public float Drain { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the radio battery charge can be changed.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { 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; }