Table of Contents

Class ChangingDangerStateEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before a player changes danger.

public class ChangingDangerStateEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
ChangingDangerStateEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ChangingDangerStateEventArgs(Player, DangerStackBase, DangerType, bool, Player, bool)

Initializes a new instance of the ChangingDangerStateEventArgs class.

public ChangingDangerStateEventArgs(Player player, DangerStackBase danger, DangerType type, bool activating, Player encounteredPlayer = null, bool isAllowed = true)

Parameters

player Player

The player changing danger.

danger DangerStackBase

The CustomPlayerEffects.Danger.DangerStackBase.

type DangerType

The DangerType.

activating bool

Whether the danger is being activated. If false it is ending.

encounteredPlayer Player

The player that has been encountered if the danger is an encounter or null if it isn't.

isAllowed bool

Whether it is allowed to activate/deactivate.

Properties

Danger

Gets the CustomPlayerEffects.Danger.DangerStackBase.

public DangerStackBase Danger { get; }

Property Value

DangerStackBase

EncounteredPlayer

Gets the encountered player if the danger is an encounter or null if it isn't.

public Player EncounteredPlayer { get; }

Property Value

Player

IsActivating

Gets a value indicating whether the danger is being activated.

public bool IsActivating { get; }

Property Value

bool

IsAllowed

Gets or sets a value indicating whether the event is allowed to continue.

public bool IsAllowed { get; set; }

Property Value

bool

IsEnding

Gets a value indicating whether the danger is ending.

public bool IsEnding { get; }

Property Value

bool

Player

Gets the Player triggering the event.

public Player Player { get; }

Property Value

Player

Type

Gets the DangerType of Danger changing.

public DangerType Type { get; }

Property Value

DangerType