Class TaskForceKeycardPickup
Represents the Task Force Custom Keycard.
public class TaskForceKeycardPickup : CustomKeycardPickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<KeycardPickup>, INameTagKeycard, ISerialNumberKeycard, IRankKeycard
- Inheritance
-
TaskForceKeycardPickup
- Inherited Members
- Extension Methods
Properties
NameTag
Gets or sets the name of the owner of this CustomKeycardItem.
public string NameTag { get; set; }
Property Value
Rank
Gets or sets the rank of this CustomKeycardItem.
public byte Rank { get; set; }
Property Value
Remarks
Capped from 0-3, returns 255 if no value was found.
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 "-".
Methods
Create(KeycardLevels, Color, string, Color, string, string, byte)
Creates a TaskForceKeycardPickup.
public static TaskForceKeycardPickup Create(KeycardLevels keycardLevels, Color permissionsColor, string itemName, Color color, string nameTag, string serialNumber, byte rank)
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.
serialNumberstringThe serial number of the keycard (numbers only, 12 max).
rankbyteThe rank of the keycard (capped from 0-3).