Class ChangingMicroHIDStateEventArgs
Contains all information before MicroHID state is changed.
Inheritance
System.Object
ChangingMicroHIDStateEventArgs
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 ChangingMicroHIDStateEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingMicroHIDStateEventArgs(Player, MicroHIDItem, HidState, HidState, Boolean)
Initializes a new instance of the ChangingMicroHIDStateEventArgs class.
Declaration
public ChangingMicroHIDStateEventArgs(Player player, MicroHIDItem microHID, HidState oldState, HidState newState, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
InventorySystem.Items.MicroHID.MicroHIDItem | microHID | |
InventorySystem.Items.MicroHID.HidState | oldState | |
InventorySystem.Items.MicroHID.HidState | newState | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether the MicroHID state can be changed or not.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MicroHID
Gets the MicroHID instance.
Declaration
public MicroHid MicroHID { get; }
Property Value
Type | Description |
---|---|
MicroHid |
NewState
Gets or sets the new MicroHID state.
Declaration
public HidState NewState { get; set; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.MicroHID.HidState |
OldState
Gets the old MicroHID state.
Declaration
public HidState OldState { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.MicroHID.HidState |
Player
Gets the player who's using the MicroHID.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |