Files
tbd-station-14/Content.Shared/Interaction/Events/AttackAttemptEvent.cs
2022-03-09 17:40:07 +11:00

22 lines
678 B
C#

namespace Content.Shared.Interaction.Events
{
/// <summary>
/// Raised Directed at a user to check whether they are allowed to attack a target.
/// </summary>
/// <remarks>
/// Combat will also check the general interaction blockers, so this event should only be used for combat-specific
/// action blocking.
/// </remarks>
public sealed class AttackAttemptEvent : CancellableEntityEventArgs
{
public EntityUid Uid { get; }
public EntityUid? Target { get; }
public AttackAttemptEvent(EntityUid uid, EntityUid? target = null)
{
Uid = uid;
Target = target;
}
}
}