Class AmmoPickup
A wrapper class for an Ammo pickup.
Implements
IWrapper<InventorySystem.Items.Pickups.ItemPickupBase>
IWrapper<InventorySystem.Items.Firearms.Ammo.AmmoPickup>
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.Pickups
Assembly: Exiled.API.dll
Syntax
public class AmmoPickup : Pickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<AmmoPickup>
Properties
| Improve this Doc View SourceAmmo
Gets or Sets the number of ammo.
Declaration
public ushort Ammo { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
AmmoType
Gets the AmmoType of the item.
Declaration
public AmmoType AmmoType { get; }
Property Value
Type | Description |
---|---|
AmmoType |
Base
Gets the InventorySystem.Items.Firearms.Ammo.AmmoPickup that this class is encapsulating.
Declaration
public AmmoPickup Base { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.Firearms.Ammo.AmmoPickup |
MaxDisplayedAmmo
Gets the max ammo.
Declaration
public int MaxDisplayedAmmo { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceToString()
Returns the AmmoPickup in a human readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string containing AmmoPickup related data. |