Class InteractingDoorEventArgs
Contains all information before a player interacts with a door.
public class InteractingDoorEventArgs : IPlayerEvent, IDoorEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
InteractingDoorEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
InteractingDoorEventArgs(Player, DoorVariant, byte, bool, bool)
Initializes a new instance of the InteractingDoorEventArgs class.
public InteractingDoorEventArgs(Player player, DoorVariant door, byte colliderId, bool isAllowed = true, bool canInteract = true)
Parameters
Properties
CanInteract
Gets or sets a value indicating whether the player can interact with the door.
public bool CanInteract { get; set; }
Property Value
Collider
Gets the Interactables.InteractableCollider instance that the player interacted with.
public InteractableCollider Collider { get; }
Property Value
- InteractableCollider
ColliderId
Gets the ColliderId of Interactables.InteractableCollider that the player interacted with.
public byte ColliderId { get; }
Property Value
Door
Gets or sets the Door instance.
public Door Door { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the player can access the door.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the player who's interacting with the door.
public Player Player { get; }