Search Results for

    Show / Hide Table of Contents

    Struct ArmorAmmoLimit

    The limit of a certain AmmoType when wearing a piece of armor.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Exiled.API.Structs
    Assembly: Exiled.API.dll
    Syntax
    public struct ArmorAmmoLimit

    Constructors

    | Improve this Doc View Source

    ArmorAmmoLimit(AmmoType, UInt16)

    Initializes a new instance of the ArmorAmmoLimit struct.

    Declaration
    public ArmorAmmoLimit(AmmoType type, ushort limit)
    Parameters
    Type Name Description
    AmmoType type

    The AmmoType of the ammo.

    System.UInt16 limit

    The ammo limit.

    Fields

    | Improve this Doc View Source

    AmmoType

    The AmmoType being limited.

    Declaration
    public AmmoType AmmoType
    Field Value
    Type Description
    AmmoType
    | Improve this Doc View Source

    Limit

    The amount to limit to.

    Declaration
    public ushort Limit
    Field Value
    Type Description
    System.UInt16

    Operators

    | Improve this Doc View Source

    Explicit(ArmorAmmoLimit to BodyArmor.ArmorAmmoLimit)

    Converts a ArmorAmmoLimit to its appropriate base game InventorySystem.Items.Armor.BodyArmor.ArmorAmmoLimit.

    Declaration
    public static explicit operator BodyArmor.ArmorAmmoLimit(ArmorAmmoLimit armorLimit)
    Parameters
    Type Name Description
    ArmorAmmoLimit armorLimit

    armor limit.

    Returns
    Type Description
    InventorySystem.Items.Armor.BodyArmor.ArmorAmmoLimit
    | Improve this Doc View Source

    Implicit(BodyArmor.ArmorAmmoLimit to ArmorAmmoLimit)

    Converts a base game InventorySystem.Items.Armor.BodyArmor.ArmorAmmoLimit to its appropriate ArmorAmmoLimit.

    Declaration
    public static implicit operator ArmorAmmoLimit(BodyArmor.ArmorAmmoLimit armorLimit)
    Parameters
    Type Name Description
    InventorySystem.Items.Armor.BodyArmor.ArmorAmmoLimit armorLimit

    Base game armor limit.

    Returns
    Type Description
    ArmorAmmoLimit

    Extension Methods

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