Files
crystall-punk-14/Content.Shared/Weapons/Ranged/Events/TakeAmmoEvent.cs
2023-03-11 20:08:22 +11:00

27 lines
743 B
C#

using Robust.Shared.Map;
namespace Content.Shared.Weapons.Ranged.Events;
/// <summary>
/// Raised on a gun when it would like to take the specified amount of ammo.
/// </summary>
public sealed class TakeAmmoEvent : EntityEventArgs
{
public readonly EntityUid? User;
public readonly int Shots;
public List<(EntityUid? Entity, IShootable Shootable)> Ammo;
/// <summary>
/// Coordinates to spawn the ammo at.
/// </summary>
public EntityCoordinates Coordinates;
public TakeAmmoEvent(int shots, List<(EntityUid? Entity, IShootable Shootable)> ammo, EntityCoordinates coordinates, EntityUid? user)
{
Shots = shots;
Ammo = ammo;
Coordinates = coordinates;
User = user;
}
}