Class Usable
A wrapper class for InventorySystem.Items.Usables.UsableItem.
public class Usable : Item, IWrapper<ItemBase>, IWrapper<UsableItem>- Inheritance
- 
      
      
      
      Usable
- Derived
- Inherited Members
- Extension Methods
Constructors
Usable(UsableItem)
Initializes a new instance of the Usable class.
public Usable(UsableItem itemBase)Parameters
- itemBaseUsableItem
- The base InventorySystem.Items.Usables.UsableItem class. 
Properties
Base
Gets the InventorySystem.Items.Usables.UsableItem that this class is encapsulating.
public UsableItem Base { get; }Property Value
- UsableItem
Equippable
Gets a value indicating whether this item is equippable.
public bool Equippable { get; }Property Value
Holsterable
Gets a value indicating whether this item is holsterable.
public bool Holsterable { get; }Property Value
IsUsing
Gets a value indicating whether the item is currently being used.
public bool IsUsing { get; }Property Value
MaxCancellableTime
Gets or sets how long after using starts a player has to cancel using the item.
public float MaxCancellableTime { get; set; }Property Value
PlayerGetCooldown
Gets all the cooldown between uses of this item.
public float PlayerGetCooldown { get; }Property Value
RemainingCooldown
Gets or sets the cooldown between repeated uses of this item.
public float RemainingCooldown { get; set; }Property Value
UseTime
Gets or sets how long it takes to use the item.
public float UseTime { get; set; }Property Value
Weight
Gets or sets the weight of the item.
public float Weight { get; set; }Property Value
Methods
CreatePickup(Vector3, Quaternion?, bool)
public override Pickup CreatePickup(Vector3 position, Quaternion? rotation = null, bool spawn = true)Parameters
- positionVector3
- The location to spawn the item. 
- rotationQuaternion?
- The rotation of the item. 
- spawnbool
- Whether the Pickup should be initially spawned. 
Returns
Use()
Uses the item.
public virtual void Use()Use(Player)
Uses the item.
public virtual void Use(Player owner = null)