Class ChangingAmmoEventArgs
Contains all information before changing firearm ammo.
public class ChangingAmmoEventArgs : IFirearmEvent, IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
ChangingAmmoEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ChangingAmmoEventArgs(ItemBase, byte, byte, bool)
Initializes a new instance of the ChangingAmmoEventArgs class.
public ChangingAmmoEventArgs(ItemBase firearm, byte oldAmmo, byte newAmmo, bool isAllowed = true)
Parameters
Properties
Firearm
Gets the Firearm the ammo type is being changed to.
public Firearm Firearm { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the ammo can be changed.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
NewAmmo
Gets or sets the new ammo to be used by the firearm.
public byte NewAmmo { get; set; }
Property Value
OldAmmo
Gets the old ammo.
public byte OldAmmo { get; }
Property Value
Player
public Player Player { get; }