Table of Contents

Class PrimaryMagazine

Namespace
Exiled.API.Features.Items.FirearmModules.Primary
Assembly
Exiled.API.dll

Basic abstraction of InventorySystem.Items.Firearms.Modules.IPrimaryAmmoContainerModule whose are logically used to be a primary magazines.

public abstract class PrimaryMagazine : Magazine
Inheritance
PrimaryMagazine
Derived
Inherited Members
Extension Methods

Constructors

PrimaryMagazine(IPrimaryAmmoContainerModule)

Initializes a new instance of the PrimaryMagazine class.

public PrimaryMagazine(IPrimaryAmmoContainerModule magazine)

Parameters

magazine IPrimaryAmmoContainerModule

target InventorySystem.Items.Firearms.Modules.IPrimaryAmmoContainerModule.

Properties

Ammo

Gets or sets a count of current ammo in magazine.

public override int Ammo { get; set; }

Property Value

int

AmmoType

Gets or sets an used AmmoType for this magazine.

public abstract AmmoType AmmoType { get; set; }

Property Value

AmmoType

ConstantMaxAmmo

Gets a max avaible ammo count in magazine without attachments.

public abstract int ConstantMaxAmmo { get; }

Property Value

int

Magazine

Gets an original InventorySystem.Items.Firearms.Modules.IPrimaryAmmoContainerModule.

public IPrimaryAmmoContainerModule Magazine { get; }

Property Value

IPrimaryAmmoContainerModule

MaxAmmo

Gets or sets a max avaible ammo count in magazine.

public override int MaxAmmo { get; }

Property Value

int