Class MetalKeycardPickup
Represents the Metal Custom Keycard.
public class MetalKeycardPickup : CustomKeycardPickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<KeycardPickup>, INameTagKeycard, ILabelKeycard, IWearKeycard, ISerialNumberKeycard
- Inheritance
-
MetalKeycardPickup
- Inherited Members
- Extension Methods
Properties
Label
Gets or sets the label of this CustomKeycardItem.
public string Label { get; set; }
Property Value
LabelColor
Gets or sets the UnityEngine.Color of this CustomKeycardItem.
public Color LabelColor { get; set; }
Property Value
- Color
NameTag
Gets or sets the name of the owner of this CustomKeycardItem.
public string NameTag { get; set; }
Property Value
SerialNumber
Gets or sets the serial number of this CustomKeycardItem.
public string SerialNumber { get; set; }
Property Value
Remarks
Can only hold 12 numbers. Non-numerical chars will be replaced with "-".
Wear
Gets or sets the wear on this CustomKeycardItem.
public byte Wear { get; set; }
Property Value
Remarks
Capped from 0-5 for Site-02 keycards, returns 255 if no wear level is found.
Methods
Create(KeycardLevels, Color, string, Color, string, string, Color, byte, string)
Creates a MetalKeycardPickup.
public static MetalKeycardPickup Create(KeycardLevels keycardLevels, Color permissionsColor, string itemName, Color color, string nameTag, string label, Color labelColor, byte wear, string serialNumber)
Parameters
keycardLevelsKeycardLevelsThe permissions of the keycard.
permissionsColorColorThe color of the permissions of the keycard.
itemNamestringThe inventory name of the keycard.
colorColorThe color of the keycard.
nameTagstringThe name of the owner of the keycard.
labelstringThe label on the keycard.
labelColorColorThe color of the label on the keycard.
wearbyteHow worn the keycard looks (capped from 0-5).
serialNumberstringThe serial number of the keycard (numbers only, 12 max).
Returns
- MetalKeycardPickup
The new MetalKeycardPickup.