mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-24 00:58:01 +03:00
26 lines
644 B
C#
26 lines
644 B
C#
using Content.Shared.DoAfter;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared._Shitmed.OnHit;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class CuffsOnHitComponent : Component
|
|
{
|
|
[DataField("proto")]
|
|
public ProtoId<EntityPrototype>? HandcuffPrototype;
|
|
|
|
[DataField]
|
|
public TimeSpan Duration = TimeSpan.FromSeconds(1);
|
|
|
|
[DataField("sound")]
|
|
public SoundSpecifier? Sound;
|
|
}
|
|
|
|
[ByRefEvent]
|
|
public record struct CuffsOnHitAttemptEvent(bool Cancelled);
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed partial class CuffsOnHitDoAfter : SimpleDoAfterEvent { }
|