Class KeycardInteractingEventArgs
Contains all information before a keycard interacts with a door.
Inheritance
System.Object
KeycardInteractingEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Item
Assembly: Exiled.Events.dll
Syntax
public class KeycardInteractingEventArgs : IPlayerEvent, IDeniableEvent, IDoorEvent, IPickupEvent, IExiledEvent
Constructors
| Improve this Doc View SourceKeycardInteractingEventArgs(KeycardPickup, Player, DoorVariant, Boolean)
Initializes a new instance of the KeycardInteractingEventArgs class.
Declaration
public KeycardInteractingEventArgs(KeycardPickup pickup, Player player, DoorVariant door, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.Keycards.KeycardPickup | pickup | |
Player | player | |
Interactables.Interobjects.DoorUtils.DoorVariant | door | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceDoor
Gets the Door instance.
Declaration
public Door Door { get; }
Property Value
Type | Description |
---|---|
Door |
IsAllowed
Gets or sets a value indicating whether or not the keycard can interact with the door.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Pickup
Gets the item that's interacting with the door.
Declaration
public Pickup Pickup { get; }
Property Value
Type | Description |
---|---|
Pickup |
Player
Gets the player who's threw the keycard.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |