Class ChangingDangerStateEventArgs
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
PlayerThe player changing danger.
danger
DangerStackBaseThe CustomPlayerEffects.Danger.DangerStackBase.
type
DangerTypeThe DangerType.
activating
boolWhether the danger is being activated. If false it is ending.
encounteredPlayer
PlayerThe player that has been encountered if the danger is an encounter or null if it isn't.
isAllowed
boolWhether 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
IsActivating
Gets a value indicating whether the danger is being activated.
public bool IsActivating { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the event is allowed to continue.
public bool IsAllowed { get; set; }
Property Value
IsEnding
Gets a value indicating whether the danger is ending.
public bool IsEnding { get; }
Property Value
Player
Gets the Player triggering the event.
public Player Player { get; }
Property Value
Type
Gets the DangerType of Danger changing.
public DangerType Type { get; }