Class Ammo
A wrapper class for InventorySystem.Items.Firearms.Ammo.AmmoItem.
Implements
IWrapper<InventorySystem.Items.ItemBase>
IWrapper<InventorySystem.Items.Firearms.Ammo.AmmoItem>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Features.Items
Assembly: Exiled.API.dll
Syntax
public class Ammo : Item, IWrapper<ItemBase>, IWrapper<AmmoItem>
Constructors
| Improve this Doc View SourceAmmo(AmmoItem)
Initializes a new instance of the Ammo class.
Declaration
public Ammo(AmmoItem itemBase)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.Firearms.Ammo.AmmoItem | itemBase | The base InventorySystem.Items.Firearms.Ammo.AmmoItem class. |
Fields
| Improve this Doc View SourceAmmoLimit
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).
Declaration
public const ushort AmmoLimit = 65535
Field Value
Type | Description |
---|---|
System.UInt16 |
Properties
| Improve this Doc View SourceBase
Gets the InventorySystem.Items.Firearms.Ammo.AmmoItem that this class is encapsulating.
Declaration
public AmmoItem Base { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.Firearms.Ammo.AmmoItem |
Methods
| Improve this Doc View SourceClone()
Clones current Ammo object.
Declaration
public override Item Clone()
Returns
Type | Description |
---|---|
Item | New Ammo object. |