Table of Contents

Class Gate

Namespace
Exiled.API.Features.Doors
Assembly
Exiled.API.dll

Represents a "pryable" door or gate.

public class Gate : BasicDoor, IWrapper<DoorVariant>, IWorldSpace, IPosition, IRotation
Inheritance
Gate
Implements
IWrapper<DoorVariant>
Inherited Members
Extension Methods

Constructors

Gate(PryableDoor, List<Room>)

Initializes a new instance of the Gate class.

public Gate(PryableDoor door, List<Room> room)

Parameters

door PryableDoor

The base Interactables.Interobjects.PryableDoor for this door.

room List<Room>

The Room's for this door.

Properties

Base

Gets the base Interactables.Interobjects.PryableDoor.

public PryableDoor Base { get; }

Property Value

PryableDoor

BlockingPryingMask

Gets or sets DoorLockType which will block prying if door has them.

public DoorLockType BlockingPryingMask { get; set; }

Property Value

DoorLockType

IsFullyClosed

Gets a value indicating whether the door is fully closed.

public override bool IsFullyClosed { get; }

Property Value

bool

IsFullyOpen

Gets a value indicating whether the door is fully open.

public override bool IsFullyOpen { get; }

Property Value

bool

IsMoving

Gets a value indicating whether the door is currently moving.

public override bool IsMoving { get; }

Property Value

bool

PryPositions

Gets the list of all available pry positions.

public IEnumerable<Transform> PryPositions { get; }

Property Value

IEnumerable<Transform>

RemainingPryCooldown

Gets or sets remaining cooldown for prying.

public float RemainingPryCooldown { get; set; }

Property Value

float

Methods

ToString()

Returns the Door in a human-readable format.

public override string ToString()

Returns

string

A string containing Door-related data.

TryPry(Player)

Tries to pry the door open. No effect if the door cannot be pried.

public bool TryPry(Player player = null)

Parameters

player Player

Player to perform pry gate.

Returns

bool

true if the door was able to be pried open.