Class Ammo
A wrapper class for InventorySystem.Items.Firearms.Ammo.AmmoItem.
public class Ammo : Item, IWrapper<ItemBase>, IWrapper<AmmoItem>
- Inheritance
-
Ammo
- Inherited Members
- Extension Methods
Constructors
Ammo(AmmoItem)
Initializes a new instance of the Ammo class.
public Ammo(AmmoItem itemBase)
Parameters
itemBase
AmmoItemThe base InventorySystem.Items.Firearms.Ammo.AmmoItem class.
Fields
AmmoLimit
Gets the absolute maximum amount of ammo that may be held at one time, if ammo is forcefully given to the player (regardless of worn armor or server configuration).
For accessing the maximum amount of ammo that may be held based on worn armor and server settings, see GetAmmoLimit(AmmoType, bool).
public const ushort AmmoLimit = 65535
Field Value
Properties
Base
Gets the InventorySystem.Items.Firearms.Ammo.AmmoItem that this class is encapsulating.
public AmmoItem Base { get; }
Property Value
- AmmoItem
Methods
Clone()
Clones current Ammo object.
public override Item Clone()