Class UsingMicroHIDEnergyEventArgs
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
Properties
Drain
Gets or sets the MicroHID energy drain.
public float Drain { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the MicroHID energy can be changed.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
MicroHID
Gets the MicroHID instance.
public MicroHid MicroHID { get; }
Property Value
Player
Gets the Player triggering the event.
public Player Player { get; }