Table of Contents

Class CylinderMagazine

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

Basic realization of InventorySystem.Items.Firearms.Modules.CylinderAmmoModule.

public class CylinderMagazine : PrimaryMagazine
Inheritance
CylinderMagazine
Inherited Members
Extension Methods

Constructors

CylinderMagazine(CylinderAmmoModule)

Initializes a new instance of the CylinderMagazine class.

public CylinderMagazine(CylinderAmmoModule magazine)

Parameters

magazine CylinderAmmoModule

target InventorySystem.Items.Firearms.Modules.CylinderAmmoModule.

Properties

AmmoType

Gets or sets an used AmmoType for this magazine.

public override AmmoType AmmoType { get; set; }

Property Value

AmmoType

Chambers

Gets a IEnumerable<T> of chambers in cylindric magazine.

public IEnumerable<CylinderMagazine.Chamber> Chambers { get; }

Property Value

IEnumerable<CylinderMagazine.Chamber>

ConstantMaxAmmo

Gets a max avaible ammo count in magazine without attachments.

public override int ConstantMaxAmmo { get; }

Property Value

int

CylinderModule

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

public CylinderAmmoModule CylinderModule { get; }

Property Value

CylinderAmmoModule

Firearm

Gets target Firearm assotiated with this magazine.

public override Firearm Firearm { get; }

Property Value

Firearm

MaxAmmo

Gets or sets a max avaible ammo count in magazine.

public override int MaxAmmo { set; }

Property Value

int

Methods

Resync()

Resyncs a related values with a client.

public override void Resync()

Rotate(int)

Rotates cylindric magazine by fixed rotatins.

public void Rotate(int rotations)

Parameters

rotations int

Rotations count.