CuffsOnHitComponent.cs 986 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  2. // SPDX-FileCopyrightText: 2025 Piras314 <p1r4s@proton.me>
  3. // SPDX-FileCopyrightText: 2025 SX_7 <sn1.test.preria.2002@gmail.com>
  4. // SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
  5. //
  6. // SPDX-License-Identifier: AGPL-3.0-or-later
  7. using Content.Shared.DoAfter;
  8. using Robust.Shared.Audio;
  9. using Robust.Shared.Prototypes;
  10. using Robust.Shared.Serialization;
  11. namespace Content.Shared._Shitmed.OnHit;
  12. [RegisterComponent]
  13. public sealed partial class CuffsOnHitComponent : Component
  14. {
  15. [DataField("proto")]
  16. public EntProtoId? HandcuffPrototype;
  17. [DataField]
  18. public TimeSpan Duration = TimeSpan.FromSeconds(1);
  19. [DataField("sound")]
  20. public SoundSpecifier? Sound;
  21. }
  22. [ByRefEvent]
  23. public record struct CuffsOnHitAttemptEvent(bool Cancelled);
  24. [Serializable, NetSerializable]
  25. public sealed partial class CuffsOnHitDoAfter : SimpleDoAfterEvent { }