Class ChangingAmmoEventArgs
Contains all information before changing firearm ammo.
Inheritance
System.Object
ChangingAmmoEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Item
Assembly: Exiled.Events.dll
Syntax
public class ChangingAmmoEventArgs : IPlayerEvent, IFirearmEvent, IItemEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingAmmoEventArgs(ItemBase, Byte, Byte, Boolean)
Initializes a new instance of the ChangingAmmoEventArgs class.
Declaration
public ChangingAmmoEventArgs(ItemBase firearm, byte oldAmmo, byte newAmmo, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.ItemBase | firearm | |
System.Byte | oldAmmo | |
System.Byte | newAmmo | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceFirearm
Gets the Firearm the ammo type is being changed to.
Declaration
public Firearm Firearm { get; }
Property Value
Type | Description |
---|---|
Firearm |
IsAllowed
Gets or sets a value indicating whether or not the ammo can be changed.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
NewAmmo
Gets or sets the new ammo to be used by the firearm.
Declaration
public byte NewAmmo { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
OldAmmo
Gets the old ammo.
Declaration
public byte OldAmmo { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Player
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |