Files
tbd-station-14/Content.Shared/Weapons/Ranged/Events/TakeAmmoEvent.cs
TaralGit 8acac895fc (Re)Adds open bolt animations for gun sprites (#17219)
Co-authored-by: and_a <and_a@DESKTOP-RJENGIR>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2023-08-13 15:58:07 +10:00

32 lines
863 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>
/// If no ammo returned what is the reason for it?
/// </summary>
public string? Reason;
/// <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;
}
}