Class UsingRadioBatteryEventArgs
Contains all information before radio battery charge is changed.
Inheritance
System.Object
UsingRadioBatteryEventArgs
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 UsingRadioBatteryEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceUsingRadioBatteryEventArgs(RadioItem, Player, Single, Boolean)
Initializes a new instance of the UsingRadioBatteryEventArgs class.
Declaration
public UsingRadioBatteryEventArgs(RadioItem radio, Player player, float drain, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.Radio.RadioItem | radio | |
Player | player | |
System.Single | drain | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceDrain
Gets or sets the radio battery drain per second.
Declaration
public float Drain { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
IsAllowed
Gets or sets a value indicating whether the radio battery charge can be changed or not.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
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 |