SurgeryToolComponent.cs 1.1 KB

123456789101112131415161718192021222324252627282930
  1. // SPDX-FileCopyrightText: 2024 Piras314 <p1r4s@proton.me>
  2. // SPDX-FileCopyrightText: 2024 deltanedas <39013340+deltanedas@users.noreply.github.com>
  3. // SPDX-FileCopyrightText: 2024 deltanedas <@deltanedas:kde.org>
  4. // SPDX-FileCopyrightText: 2024 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
  5. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  6. //
  7. // SPDX-License-Identifier: AGPL-3.0-or-later
  8. using Robust.Shared.Audio;
  9. using Robust.Shared.GameStates;
  10. namespace Content.Shared._Shitmed.Medical.Surgery.Tools;
  11. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  12. public sealed partial class SurgeryToolComponent : Component
  13. {
  14. [DataField, AutoNetworkedField]
  15. public SoundSpecifier? StartSound;
  16. [DataField, AutoNetworkedField]
  17. public SoundSpecifier? EndSound;
  18. }
  19. /// <summary>
  20. /// Raised on a tool to see if it can be used in a surgery step.
  21. /// If this is cancelled the step can't be completed.
  22. /// </summary>
  23. [ByRefEvent]
  24. public record struct SurgeryToolUsedEvent(EntityUid User, EntityUid Target, bool Cancelled = false);