Class ChangingLeverStatusEventArgs
Contains all information before a player changes the warhead lever status.
public class ChangingLeverStatusEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
ChangingLeverStatusEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ChangingLeverStatusEventArgs(Player, bool, bool)
Initializes a new instance of the ChangingLeverStatusEventArgs class.
public ChangingLeverStatusEventArgs(Player player, bool curState, bool isAllowed = true)
Parameters
Properties
CurrentState
Gets a value indicating whether the lever is enabled.
public bool CurrentState { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the lever status will change.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the player who's changing the warhead status.
public Player Player { get; }