Class GrenadePickup
A wrapper class for a high explosive grenade pickup.
public class GrenadePickup : Pickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<TimedGrenadePickup>
- Inheritance
-
GrenadePickup
- Inherited Members
- Extension Methods
Properties
Base
Gets the InventorySystem.Items.ThrowableProjectiles.TimedGrenadePickup that this class is encapsulating.
public TimedGrenadePickup Base { get; }
Property Value
- TimedGrenadePickup
FuseTime
Gets or sets how long the fuse will last.
public float FuseTime { get; set; }
Property Value
ProjectileType
Gets the ProjectileType of the item.
public ProjectileType ProjectileType { get; }
Property Value
Methods
Explode()
Trigger the grenade to make it Explode.
public void Explode()
Explode(Footprint)
Trigger the grenade to make it Explode.
public void Explode(Footprint attacker)
Parameters
attacker
FootprintThe Footprinting.Footprint of the explosion.
InitializeProperties(ItemBase)
initialize item properties.
protected override void InitializeProperties(ItemBase itemBase)
Parameters
itemBase
ItemBasetarget item.