Class UsingRadioPickupBatteryEventArgs
Contains all information before radio pickup battery drains.
Inheritance
System.Object
UsingRadioPickupBatteryEventArgs
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.Item
Assembly: Exiled.Events.dll
Syntax
public class UsingRadioPickupBatteryEventArgs : IDeniableEvent, IPickupEvent, IExiledEvent
Constructors
| Improve this Doc View SourceUsingRadioPickupBatteryEventArgs(RadioPickup, Single, Boolean)
Initializes a new instance of the UsingRadioPickupBatteryEventArgs class.
Declaration
public UsingRadioPickupBatteryEventArgs(RadioPickup pickup, float drain, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.Radio.RadioPickup | pickup | |
System.Single | drain | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceDrain
Gets or sets the radio percent drain.
Declaration
public float Drain { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
IsAllowed
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Pickup
Declaration
public Pickup Pickup { get; }
Property Value
Type | Description |
---|---|
Pickup |
RadioPickup
Declaration
public RadioPickup RadioPickup { get; }
Property Value
Type | Description |
---|---|
RadioPickup |