Class FirearmPickup
A wrapper class for a Firearm pickup.
public class FirearmPickup : Pickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<FirearmPickup>
- Inheritance
-
FirearmPickup
- Inherited Members
- Extension Methods
Properties
Ammo
Gets or sets a value indicating how much ammo have this FirearmPickup.
public int Ammo { get; set; }
Property Value
AmmoDrain
Gets or sets the ammo drain per shoot.
public int AmmoDrain { get; set; }
Property Value
Remarks
Always 1
by default.
Applied on a high layer nether basegame ammo controllers.
Attachments
Gets or sets a value indicating whether the attachment code have this FirearmPickup.
public uint Attachments { get; set; }
Property Value
Base
Gets the InventorySystem.Items.Firearms.FirearmPickup that this class is encapsulating.
public FirearmPickup Base { get; }
Property Value
- FirearmPickup
IsDistributed
Gets a value indicating whether the pickup is already distributed.
[Obsolete("Feature deprecated")]
public bool IsDistributed { get; }
Property Value
MaxAmmo
Gets or sets a value indicating how much ammo can contain this FirearmPickup.
public int MaxAmmo { get; set; }
Property Value
Methods
Distribute()
Initializes the item as if it was spawned naturally by map generation.
public void Distribute()
InitializeProperties(ItemBase)
initialize item properties.
protected override void InitializeProperties(ItemBase itemBase)
Parameters
itemBase
ItemBasetarget item.
ToString()
Returns the FirearmPickup in a human-readable format.
public override string ToString()
Returns
- string
A string containing FirearmPickup related data.