Class SingleUseKeycard
A base class for SingleUse keycard items.
public class SingleUseKeycard : Keycard, IWrapper<ItemBase>, IWrapper<KeycardItem>- Inheritance
- 
      
      
      
      
      SingleUseKeycard
- 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
Base
Gets the InventorySystem.Items.Keycards.KeycardItem this encapsulates.
public SingleUseKeycardItem Base { get; }Property Value
- SingleUseKeycardItem
IsDestroyed
Gets or sets a value indicating whether the Keycard is destroyed.
public bool IsDestroyed { 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
ToString()
Returns the Keycard in a human readable format.
public override string ToString()Returns
- string
- A string containing Keycard-related data.