Class UsingMicroHIDEnergyEventArgs
Contains all information before MicroHID energy is changed.
Inheritance
System.Object
UsingMicroHIDEnergyEventArgs
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 UsingMicroHIDEnergyEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceUsingMicroHIDEnergyEventArgs(Player, MicroHIDItem, HidState, Single, Boolean)
Initializes a new instance of the UsingMicroHIDEnergyEventArgs class.
Declaration
public UsingMicroHIDEnergyEventArgs(Player player, MicroHIDItem microHIDitem, HidState currentState, float drain, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
InventorySystem.Items.MicroHID.MicroHIDItem | microHIDitem | |
InventorySystem.Items.MicroHID.HidState | currentState | |
System.Single | drain | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceCurrentState
Gets the current state of the MicroHID.
Declaration
public HidState CurrentState { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.MicroHID.HidState |
Drain
Gets or sets the MicroHID energy drain.
Declaration
public float Drain { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
IsAllowed
Gets or sets a value indicating whether the MicroHID energy 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 |
MicroHID
Gets the MicroHID instance.
Declaration
public MicroHid MicroHID { get; }
Property Value
Type | Description |
---|---|
MicroHid |
Player
Gets the player who's using the MicroHID.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |