SurgeryStepEvent.cs 963 B

12345678910111213141516171819202122
  1. // SPDX-FileCopyrightText: 2024 deltanedas <39013340+deltanedas@users.noreply.github.com>
  2. // SPDX-FileCopyrightText: 2024 deltanedas <@deltanedas:kde.org>
  3. // SPDX-FileCopyrightText: 2024 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
  4. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  5. //
  6. // SPDX-License-Identifier: AGPL-3.0-or-later
  7. using Robust.Shared.Prototypes;
  8. namespace Content.Shared._Shitmed.Medical.Surgery;
  9. /// <summary>
  10. /// Raised on the step entity and the user after doing a step.
  11. /// </summary>
  12. [ByRefEvent]
  13. public record struct SurgeryStepEvent(EntityUid User, EntityUid Body, EntityUid Part, List<EntityUid> Tools, EntityUid Surgery, EntityUid Step, bool Complete);
  14. /// <summary>
  15. /// Raised on the user after failing to do a step for any reason.
  16. /// </summary>
  17. [ByRefEvent]
  18. public record struct SurgeryStepFailedEvent(EntityUid User, EntityUid Body, EntProtoId SurgeryId, EntProtoId StepId);