SurgeryBodyConditionComponent.cs 890 B

12345678910111213141516171819202122232425
  1. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  2. // SPDX-FileCopyrightText: 2025 Janet Blackquill <uhhadd@gmail.com>
  3. // SPDX-FileCopyrightText: 2025 deltanedas <39013340+deltanedas@users.noreply.github.com>
  4. // SPDX-FileCopyrightText: 2025 deltanedas <@deltanedas:kde.org>
  5. //
  6. // SPDX-License-Identifier: AGPL-3.0-or-later
  7. using Robust.Shared.GameStates;
  8. using Robust.Shared.Prototypes;
  9. using Content.Shared.Body.Prototypes;
  10. namespace Content.Shared._Shitmed.Medical.Surgery.Conditions;
  11. /// <summary>
  12. /// Requires that this surgery is (not) done on one of the provided body prototypes
  13. /// </summary>
  14. [RegisterComponent, NetworkedComponent]
  15. public sealed partial class SurgeryBodyConditionComponent : Component
  16. {
  17. [DataField(required: true)]
  18. public HashSet<ProtoId<BodyPrototype>> Accepted = default!;
  19. [DataField]
  20. public bool Inverse;
  21. }