2023-05-10 10:01:23 +10:00
|
|
|
namespace Content.Shared.Actions.Events;
|
|
|
|
|
|
2025-04-19 11:38:22 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Raised directed on the target OR their actively held entity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public record struct DisarmAttemptEvent
|
2023-05-10 10:01:23 +10:00
|
|
|
{
|
|
|
|
|
public readonly EntityUid TargetUid;
|
|
|
|
|
public readonly EntityUid DisarmerUid;
|
|
|
|
|
public readonly EntityUid? TargetItemInHandUid;
|
|
|
|
|
|
2025-04-19 11:38:22 +10:00
|
|
|
public bool Cancelled;
|
|
|
|
|
|
2023-05-10 10:01:23 +10:00
|
|
|
public DisarmAttemptEvent(EntityUid targetUid, EntityUid disarmerUid, EntityUid? targetItemInHandUid = null)
|
|
|
|
|
{
|
|
|
|
|
TargetUid = targetUid;
|
|
|
|
|
DisarmerUid = disarmerUid;
|
|
|
|
|
TargetItemInHandUid = targetItemInHandUid;
|
|
|
|
|
}
|
2025-04-19 11:38:22 +10:00
|
|
|
}
|