Class SingleUseKeycardPickup
A base class for all keycard pickups.
public class SingleUseKeycardPickup : KeycardPickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<KeycardPickup>
- Inheritance
-
SingleUseKeycardPickup
- Inherited Members
- Extension Methods
Properties
AllowClosingDoors
Gets or sets a value indicating whether the Keycard allow the closing of Doors.
public bool AllowClosingDoors { get; set; }
Property Value
Permissions
Gets or sets the KeycardPermissions of the keycard.
public override KeycardPermissions Permissions { get; set; }
Property Value
TimeToDestroy
Gets or sets the time delay to destroy the Keycard after being used.
public float TimeToDestroy { get; set; }
Property Value
Uses
Gets or sets the amount of uses remaining on the keycard.
public int Uses { get; set; }
Property Value
Remarks
Multiple uses can look strange for clients (they'll run the discard animation, but can reselect the keycard)
Setting this to 0 or lower will destroy the keycard.
Methods
InitializeProperties(ItemBase)
initialize item properties.
protected override void InitializeProperties(ItemBase itemBase)
Parameters
itemBaseItemBasetarget item.
ToString()
Returns the Keycard in a human readable format.
public override string ToString()
Returns
- string
A string containing Keycard-related data.