Class KeycardInteractingEventArgs
Contains all information before a keycard interacts with a door.
public class KeycardInteractingEventArgs : IPlayerEvent, IDeniableEvent, IDoorEvent, IPickupEvent, IExiledEvent
- Inheritance
-
KeycardInteractingEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
KeycardInteractingEventArgs(KeycardPickup, Player, DoorVariant, bool)
Initializes a new instance of the KeycardInteractingEventArgs class.
public KeycardInteractingEventArgs(KeycardPickup pickup, Player player, DoorVariant door, bool isAllowed = true)
Parameters
Properties
Door
Gets the Door instance.
public Door Door { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the keycard can interact with the door.
public bool IsAllowed { get; set; }
Property Value
KeycardPickup
Gets the item that's interacting with the door.
public KeycardPickup KeycardPickup { get; }
Property Value
Pickup
Gets the item that's interacting with the door.
public Pickup Pickup { get; }
Property Value
Player
Gets the player who's threw the keycard.
public Player Player { get; }