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 SourceArmorAmmoLimit(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 SourceAmmoType
The AmmoType being limited.
Declaration
public AmmoType AmmoType
Field Value
Type | Description |
---|---|
AmmoType |
Limit
The amount to limit to.
Declaration
public ushort Limit
Field Value
Type | Description |
---|---|
System.UInt16 |
Operators
| Improve this Doc View SourceExplicit(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 |
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 |