22 lines
600 B
C#
22 lines
600 B
C#
namespace Content.Shared.Actions.Events;
|
|
|
|
/// <summary>
|
|
/// Raised directed on the target OR their actively held entity.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public record struct DisarmAttemptEvent
|
|
{
|
|
public readonly EntityUid TargetUid;
|
|
public readonly EntityUid DisarmerUid;
|
|
public readonly EntityUid? TargetItemInHandUid;
|
|
|
|
public bool Cancelled;
|
|
|
|
public DisarmAttemptEvent(EntityUid targetUid, EntityUid disarmerUid, EntityUid? targetItemInHandUid = null)
|
|
{
|
|
TargetUid = targetUid;
|
|
DisarmerUid = disarmerUid;
|
|
TargetItemInHandUid = targetItemInHandUid;
|
|
}
|
|
}
|