Table of Contents

Class ChangingLeverStatusEventArgs

Namespace
Exiled.Events.EventArgs.Warhead
Assembly
Exiled.Events.dll

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

player Player
curState bool
isAllowed bool

Properties

CurrentState

Gets a value indicating whether the lever is enabled.

public bool CurrentState { get; }

Property Value

bool

IsAllowed

Gets or sets a value indicating whether the lever status will change.

public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the player who's changing the warhead status.

public Player Player { get; }

Property Value

Player