Class CylinderMagazine
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
CylinderAmmoModuletarget InventorySystem.Items.Firearms.Modules.CylinderAmmoModule.
Properties
AmmoType
Gets or sets an used AmmoType for this magazine.
public override AmmoType AmmoType { get; set; }
Property Value
Chambers
Gets a IEnumerable<T> of chambers in cylindric magazine.
public IEnumerable<CylinderMagazine.Chamber> Chambers { get; }
Property Value
ConstantMaxAmmo
Gets a max avaible ammo count in magazine without attachments.
public override int ConstantMaxAmmo { get; }
Property Value
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
MaxAmmo
Gets or sets a max avaible ammo count in magazine.
public override int MaxAmmo { set; }
Property Value
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
intRotations count.