Class MetalKeycard
Represents the Metal Custom Keycard.
public class MetalKeycard : CustomKeycardItem, IWrapper<ItemBase>, IWrapper<KeycardItem>, INameTagKeycard, ILabelKeycard, IWearKeycard, ISerialNumberKeycard- Inheritance
- 
      
      
      
      
      
      MetalKeycard
- 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 MetalKeycard.
public static MetalKeycard Create(KeycardLevels keycardLevels, Color permissionsColor, string itemName, Color color, string nameTag, string label, Color labelColor, byte wear, string serialNumber)Parameters
- keycardLevelsKeycardLevels
- The permissions of the keycard. 
- permissionsColorColor
- The color of the permissions of the keycard. 
- itemNamestring
- The inventory name of the keycard. 
- colorColor
- The color of the keycard. 
- nameTagstring
- The name of the owner of the keycard. 
- labelstring
- The label on the keycard. 
- labelColorColor
- The color of the label on the keycard. 
- wearbyte
- How worn the keycard looks (capped from 0-5). 
- serialNumberstring
- The serial number of the keycard (numbers only, 12 max). 
Returns
- MetalKeycard
- The new MetalKeycard.