Table of Contents

Class UsingMicroHIDEnergyEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before MicroHID energy is changed.

public class UsingMicroHIDEnergyEventArgs : IDeniableEvent, IItemEvent, IPlayerEvent, IExiledEvent
Inheritance
UsingMicroHIDEnergyEventArgs
Implements
Inherited Members
Extension Methods

Constructors

UsingMicroHIDEnergyEventArgs(MicroHIDItem, float, bool)

Initializes a new instance of the UsingMicroHIDEnergyEventArgs class.

public UsingMicroHIDEnergyEventArgs(MicroHIDItem microHIDitem, float newEnergy, bool isAllowed = true)

Parameters

microHIDitem MicroHIDItem
newEnergy float
isAllowed bool

Properties

Drain

Gets or sets the MicroHID energy drain.

public float Drain { get; set; }

Property Value

float

IsAllowed

Gets or sets a value indicating whether the MicroHID energy can be changed.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

MicroHID

Gets the MicroHID instance.

public MicroHid MicroHID { get; }

Property Value

MicroHid

Player

Gets the Player triggering the event.

public Player Player { get; }

Property Value

Player