Class PumpBarrelMagazine
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
PumpActionModuleTarget 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
CockedAmmo
Gets or sets an amount of bullets, that pump module will try to shot.
public int CockedAmmo { get; set; }
Property Value
Firearm
Gets target Firearm assotiated with this magazine.
public override Firearm Firearm { get; }
Property Value
IsCocked
Gets or sets a value indicating whether barrel is cocked.
public override bool IsCocked { get; set; }
Property Value
MaxAmmo
Gets or sets a max avaible ammo count in magazine.
public override int MaxAmmo { get; set; }
Property Value
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()