Table of Contents

Class PumpBarrelMagazine

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

Basic realization of InventorySystem.Items.Firearms.Modules.PumpActionModule barrel.

public class PumpBarrelMagazine : BarrelMagazine
Inheritance
PumpBarrelMagazine
Inherited Members
Extension Methods

Constructors

PumpBarrelMagazine(PumpActionModule)

Initializes a new instance of the PumpBarrelMagazine class.

public PumpBarrelMagazine(PumpActionModule pumpModule)

Parameters

pumpModule PumpActionModule

Target InventorySystem.Items.Firearms.Modules.PumpActionModule.

Properties

Ammo

Gets or sets a count of current ammo in magazine.

public override int Ammo { get; set; }

Property Value

int

CockedAmmo

Gets or sets an amount of bullets, that pump module will try to shot.

public int CockedAmmo { get; set; }

Property Value

int

Firearm

Gets target Firearm assotiated with this magazine.

public override Firearm Firearm { get; }

Property Value

Firearm

IsCocked

Gets or sets a value indicating whether barrel is cocked.

public override bool IsCocked { get; set; }

Property Value

bool

MaxAmmo

Gets or sets a max avaible ammo count in magazine.

public override int MaxAmmo { get; set; }

Property Value

int

PumpBarrel

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

public PumpActionModule PumpBarrel { get; }

Property Value

PumpActionModule

Methods

Resync()

Resyncs a related values with a client.

public override void Resync()