Class Keycard
A wrapper class for InventorySystem.Items.Keycards.KeycardItem.
Implements
IWrapper<InventorySystem.Items.ItemBase>
IWrapper<InventorySystem.Items.Keycards.KeycardItem>
Inherited Members
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.API.Features.Items
Assembly: Exiled.API.dll
Syntax
public class Keycard : Item, IWrapper<ItemBase>, IWrapper<KeycardItem>
Constructors
| Improve this Doc View SourceKeycard(KeycardItem)
Initializes a new instance of the Keycard class.
Declaration
public Keycard(KeycardItem itemBase)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.Keycards.KeycardItem | itemBase | The base InventorySystem.Items.Keycards.KeycardItem class. |
Properties
| Improve this Doc View SourceBase
Gets the InventorySystem.Items.Keycards.KeycardItem that this class is encapsulating.
Declaration
public KeycardItem Base { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.Keycards.KeycardItem |
Permissions
Gets or sets the KeycardPermissions of the keycard.
Declaration
public KeycardPermissions Permissions { get; set; }
Property Value
Type | Description |
---|---|
KeycardPermissions |
Methods
| Improve this Doc View SourceClone()
Clones current Keycard object.
Declaration
public override Item Clone()
Returns
Type | Description |
---|---|
Item | New Keycard object. |
Overrides
| Improve this Doc View SourceToString()
Returns the Keycard in a human readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string containing Keycard-related data. |