Class EscapingEventArgs
Contains all information before a player escapes.
public class EscapingEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
EscapingEventArgs
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
EscapingEventArgs(Player, RoleTypeId, EscapeScenario)
Initializes a new instance of the EscapingEventArgs class.
public EscapingEventArgs(Player player, RoleTypeId newRole, EscapeScenario escapeScenario)
Parameters
player
PlayernewRole
RoleTypeIdescapeScenario
EscapeScenario
Properties
EscapeScenario
Gets or sets the EscapeScenario that will represent for this player.
public EscapeScenario EscapeScenario { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the player can escape.
public bool IsAllowed { get; set; }
Property Value
NewRole
Gets or sets the role that will be assigned when the player escapes.
public RoleTypeId NewRole { get; set; }
Property Value
- RoleTypeId
Player
Gets the player who's escaping.
public Player Player { get; }