Class ChangingMicroHIDStateEventArgs
Contains all information before MicroHID state is changed.
public class ChangingMicroHIDStateEventArgs : IDeniableEvent, IItemEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
ChangingMicroHIDStateEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ChangingMicroHIDStateEventArgs(ItemBase, MicroHidPhase, bool)
Initializes a new instance of the ChangingMicroHIDStateEventArgs class.
public ChangingMicroHIDStateEventArgs(ItemBase microHID, MicroHidPhase newPhase, bool isAllowed = true)
Parameters
microHID
ItemBasenewPhase
MicroHidPhaseisAllowed
bool
Properties
IsAllowed
Gets or sets a value indicating whether the MicroHID state 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
NewPhase
Gets or sets the new MicroHID state.
public MicroHidPhase NewPhase { get; set; }
Property Value
- MicroHidPhase
Player
Gets the Player triggering the event.
public Player Player { get; }