Class DroppedAmmoEventArgs
Contains all information after a player drops ammo.
Inheritance
System.Object
DroppedAmmoEventArgs
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.Player
Assembly: Exiled.Events.dll
Syntax
public class DroppedAmmoEventArgs : IPlayerEvent, IExiledEvent
Constructors
| Improve this Doc View SourceDroppedAmmoEventArgs(Player, AmmoType, UInt16, List<AmmoPickup>)
Initializes a new instance of the DroppedAmmoEventArgs class.
Declaration
public DroppedAmmoEventArgs(Player player, AmmoType ammoType, ushort amount, List<AmmoPickup> ammoPickups)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
AmmoType | ammoType | |
System.UInt16 | amount | |
System.Collections.Generic.List<InventorySystem.Items.Firearms.Ammo.AmmoPickup> | ammoPickups |
Properties
| Improve this Doc View SourceAmmoPickups
Gets the dropped ammo pickups.
Declaration
public IEnumerable<AmmoPickup> AmmoPickups { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<AmmoPickup> |
AmmoType
Gets the type of dropped ammo.
Declaration
public AmmoType AmmoType { get; }
Property Value
Type | Description |
---|---|
AmmoType |
Amount
Gets the amount of dropped ammo.
Declaration
public ushort Amount { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Player
Gets the player who dropped the ammo.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |