Class AutomaticBarrelMagazine
Basic realization of InventorySystem.Items.Firearms.Modules.AutomaticActionModule barrel.
public class AutomaticBarrelMagazine : BarrelMagazine
- Inheritance
-
AutomaticBarrelMagazine
- Inherited Members
- Extension Methods
Constructors
AutomaticBarrelMagazine(AutomaticActionModule)
Initializes a new instance of the AutomaticBarrelMagazine class.
public AutomaticBarrelMagazine(AutomaticActionModule automaticModule)
Parameters
automaticModule
AutomaticActionModuleTarget InventorySystem.Items.Firearms.Modules.AutomaticActionModule.
Properties
Ammo
Gets or sets a count of current ammo in magazine.
public override int Ammo { get; set; }
Property Value
AutomaticBarrel
Gets an original InventorySystem.Items.Firearms.Modules.IAmmoContainerModule.
public AutomaticActionModule AutomaticBarrel { get; }
Property Value
- AutomaticActionModule
BoltLocked
Gets or sets a value indicating whether barrel bolt is currently locked.
public bool BoltLocked { get; set; }
Property Value
FireRate
Gets the fire rate of the firearm.
public float FireRate { get; }
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
IsOpenBolted
Gets a value indicating whether barrel magazine has open bolt or not.
public bool IsOpenBolted { get; }
Property Value
MaxAmmo
Gets or sets a max avaible ammo count in magazine.
public override int MaxAmmo { get; set; }
Property Value
Remarks
Will be ranged between 0
and 16
due basegame logic.
Methods
Resync()
Resyncs a related values with a client.
public override void Resync()