Table of Contents

Struct ArmorAmmoLimit

Namespace
Exiled.API.Structs
Assembly
Exiled.API.dll

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

public struct ArmorAmmoLimit
Inherited Members
Extension Methods

Constructors

ArmorAmmoLimit(AmmoType, ushort)

Initializes a new instance of the ArmorAmmoLimit struct.

public ArmorAmmoLimit(AmmoType type, ushort limit)

Parameters

type AmmoType

The AmmoType of the ammo.

limit ushort

The ammo limit.

Fields

AmmoType

The AmmoType being limited.

public AmmoType AmmoType

Field Value

AmmoType

Limit

The amount to limit to.

public ushort Limit

Field Value

ushort

Operators

explicit operator ArmorAmmoLimit(ArmorAmmoLimit)

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

public static explicit operator BodyArmor.ArmorAmmoLimit(ArmorAmmoLimit armorLimit)

Parameters

armorLimit ArmorAmmoLimit

armor limit.

Returns

BodyArmor.ArmorAmmoLimit

implicit operator ArmorAmmoLimit(ArmorAmmoLimit)

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

public static implicit operator ArmorAmmoLimit(BodyArmor.ArmorAmmoLimit armorLimit)

Parameters

armorLimit BodyArmor.ArmorAmmoLimit

Base game armor limit.

Returns

ArmorAmmoLimit