Class Throwable
A wrapper class for throwable items.
public class Throwable : Item, IWrapper<ItemBase>, IWrapper<ThrowableItem>
- Inheritance
-
Throwable
- Derived
- Inherited Members
- Extension Methods
Constructors
Throwable(ThrowableItem)
Initializes a new instance of the Throwable class.
public Throwable(ThrowableItem itemBase)
Parameters
itemBase
ThrowableItemThe base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class.
Properties
Base
Gets the InventorySystem.Items.ThrowableProjectiles.ThrowableItem base for this item.
public ThrowableItem Base { get; }
Property Value
- ThrowableItem
PinPullTime
Gets or sets the amount of time it takes to pull the pin.
public float PinPullTime { get; set; }
Property Value
Projectile
Gets a Projectile to change grenade properties.
public Projectile Projectile { get; }
Property Value
Repickable
Gets or sets a value indicating whether players can pickup grenade after throw.
public bool Repickable { get; set; }
Property Value
Scale
Gets or sets the scale for the item.
public override Vector3 Scale { get; set; }
Property Value
- Vector3
Methods
Clone()
Clones current Throwable object.
public override Item Clone()
Returns
Throw(bool)
Throws the item.
public void Throw(bool fullForce = true)
Parameters
fullForce
boolWhether to use full or weak force.
ToString()
Returns the Throwable in a human readable format.
public override string ToString()
Returns
- string
A string containing Throwable-related data.