Search Results for

    Show / Hide Table of Contents

    Class Ammo

    A wrapper class for InventorySystem.Items.Firearms.Ammo.AmmoItem.

    Inheritance
    System.Object
    TypeCastObject<Item>
    Item
    Ammo
    Implements
    IWrapper<InventorySystem.Items.ItemBase>
    IWrapper<InventorySystem.Items.Firearms.Ammo.AmmoItem>
    Inherited Members
    Item.List
    Item.Serial
    Item.IsInInventory
    Item.Scale
    Item.Type
    Item.Category
    Item.TierFlags
    Item.Weight
    Item.IsAmmo
    Item.IsArmor
    Item.IsKeycard
    Item.IsConsumable
    Item.IsThrowable
    Item.IsUsable
    Item.IsWeapon
    Item.IsLightEmitter
    Item.IsDisarmer
    Item.Owner
    Item.Get(ItemBase)
    Item.Get(UInt16)
    Item.Create(ItemType, Player)
    Item.Give(Player)
    Item.Destroy()
    Item.CreatePickup(Vector3, Quaternion, Boolean)
    Item.ToString()
    Item.ChangeItemOwner(Player, Player)
    TypeCastObject<Item>.Cast<TObject>()
    TypeCastObject<Item>.Cast<TObject>(TObject)
    TypeCastObject<Item>.As<TObject>()
    TypeCastObject<Item>.Is<TObject>(TObject)
    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 Source

    Ammo(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 Source

    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).

    Declaration
    public const ushort AmmoLimit = 65535
    Field Value
    Type Description
    System.UInt16

    Properties

    | Improve this Doc View Source

    Base

    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 Source

    Clone()

    Clones current Ammo object.

    Declaration
    public override Item Clone()
    Returns
    Type Description
    Item

    New Ammo object.

    Overrides
    Item.Clone()

    Implements

    IWrapper<T>
    IWrapper<T>

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX