Table of Contents

Class EmergencyReleaseButton

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

A wrapper for EmergencyReleaseButton.

public class EmergencyReleaseButton : IWrapper<EmergencyDoorRelease>
Inheritance
EmergencyReleaseButton
Implements
IWrapper<EmergencyDoorRelease>
Inherited Members
Extension Methods

Properties

Base

Gets the base Interactables.Interobjects.EmergencyDoorRelease that this class is wrapping.

public EmergencyDoorRelease Base { get; }

Property Value

EmergencyDoorRelease

Door

Gets the door which will be opened if this button is interacted.

public Door Door { get; }

Property Value

Door

InitialTimer

Gets or sets default time after which button can be used again.

public float InitialTimer { get; set; }

Property Value

float

IsReady

Gets or sets a value indicating whether button can be used.

public bool IsReady { get; set; }

Property Value

bool

List

Gets all instaces of EmergencyReleaseButton.

public static IReadOnlyCollection<EmergencyReleaseButton> List { get; }

Property Value

IReadOnlyCollection<EmergencyReleaseButton>

ReleaseTimer

Gets or sets time after which button can be used again.

public float ReleaseTimer { get; set; }

Property Value

float

Methods

Get(Door)

Gets an EmergencyReleaseButton by door.

public static EmergencyReleaseButton Get(Door door)

Parameters

door Door

Door which is linked with EmergencyReleaseButton.

Returns

EmergencyReleaseButton

An EmergencyReleaseButton instance if found. Otherwise, null.

Get(EmergencyDoorRelease)

Gets an EmergencyReleaseButton by it's base-game instance.

public static EmergencyReleaseButton Get(EmergencyDoorRelease emergencyDoorRelease)

Parameters

emergencyDoorRelease EmergencyDoorRelease

The Interactables.Interobjects.EmergencyDoorRelease instance.

Returns

EmergencyReleaseButton

An EmergencyReleaseButton instance if found. Otherwise, null.

Get(Func<EmergencyReleaseButton, bool>)

Gets all EmergencyReleaseButton according to the condition.

public static IEnumerable<EmergencyReleaseButton> Get(Func<EmergencyReleaseButton, bool> predicate)

Parameters

predicate Func<EmergencyReleaseButton, bool>

Condition to satisfy.

Returns

IEnumerable<EmergencyReleaseButton>

An IEnumerable<T> of found instances.