Class InteractingElevatorEventArgs
Contains all information before a player interacts with an elevator.
public class InteractingElevatorEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
InteractingElevatorEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
InteractingElevatorEventArgs(Player, ElevatorChamber, bool, bool)
Initializes a new instance of the InteractingElevatorEventArgs class.
public InteractingElevatorEventArgs(Player player, ElevatorChamber elevator, bool isCalledFromInside, bool isAllowed = true)
Parameters
Properties
Elevator
Gets the Elevator instance.
public ElevatorChamber Elevator { get; }
Property Value
- ElevatorChamber
IsAllowed
Gets or sets a value indicating whether the player can interact with the elevator.
public bool IsAllowed { get; set; }
Property Value
IsCalledFromInside
Gets a value indicating whether the player as interact with the elevator from the inside.
public bool IsCalledFromInside { get; }
Property Value
Lift
Gets the Lift instance.
public Lift Lift { get; }
Property Value
Player
Gets the player who's interacting with the elevator.
public Player Player { get; }