Table of Contents

Class PermissionsProvider

Namespace
Exiled.API.Features.Items.Keycards
Assembly
Exiled.API.dll

A simple class for providing permissions with Interactables.Interobjects.DoorUtils.DoorPermissionFlags.

public class PermissionsProvider : IDoorPermissionProvider
Inheritance
PermissionsProvider
Implements
IDoorPermissionProvider
Inherited Members
Extension Methods

Constructors

PermissionsProvider(DoorPermissionFlags, ItemType, ushort)

Initializes a new instance of the PermissionsProvider class.

public PermissionsProvider(DoorPermissionFlags flags, ItemType type, ushort serial)

Parameters

flags DoorPermissionFlags

The flags of this provider.

type ItemType

The ItemType to imitate.

serial ushort

The serial to imitate.

Properties

Flags

Gets or sets the permissions of this provider.

public DoorPermissionFlags Flags { get; set; }

Property Value

DoorPermissionFlags

PermissionsUsedCallback

Gets the action called when this PermissionsProvider is used.

public PermissionUsed PermissionsUsedCallback { get; }

Property Value

PermissionUsed

Serial

Gets or sets the serial this PermissionsProvider imitates.

public ushort Serial { get; set; }

Property Value

ushort

Type

Gets or sets the ItemType this PermissionsProvider imitates.

public ItemType Type { get; set; }

Property Value

ItemType

Methods

GetPermissions(IDoorPermissionRequester)

Gets the permissions of this PermissionsProvider.

public DoorPermissionFlags GetPermissions(IDoorPermissionRequester requester)

Parameters

requester IDoorPermissionRequester

Not used.

Returns

DoorPermissionFlags

The Interactables.Interobjects.DoorUtils.DoorPermissionFlags of this PermissionsProvider.