Class ChangingLeverStatusEventArgs
Contains all information before a player changes the warhead lever status.
Inheritance
System.Object
ChangingLeverStatusEventArgs
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.Warhead
Assembly: Exiled.Events.dll
Syntax
public class ChangingLeverStatusEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingLeverStatusEventArgs(Player, Boolean, Boolean)
Initializes a new instance of the ChangingLeverStatusEventArgs class.
Declaration
public ChangingLeverStatusEventArgs(Player player, bool curState, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
System.Boolean | curState | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceCurrentState
Gets a value indicating whether the lever is enabled.
Declaration
public bool CurrentState { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsAllowed
Gets or sets a value indicating whether or not the lever status will change.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who's changing the warhead status.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |