SurgeryPartComponentConditionComponent.cs 969 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-FileCopyrightText: 2024 Piras314 <p1r4s@proton.me>
  2. // SPDX-FileCopyrightText: 2024 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
  3. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  4. //
  5. // SPDX-License-Identifier: AGPL-3.0-or-later
  6. using Robust.Shared.GameStates;
  7. using Robust.Shared.Prototypes;
  8. namespace Content.Shared._Shitmed.Medical.Surgery.Conditions;
  9. // <summary>
  10. // What components are necessary in the targeted body part for the surgery to be valid.
  11. // </summary>
  12. [RegisterComponent, NetworkedComponent]
  13. public sealed partial class SurgeryPartComponentConditionComponent : Component
  14. {
  15. // <summary>
  16. // The components to check for.
  17. // </summary>
  18. [DataField(required: true)]
  19. public ComponentRegistry Components;
  20. // <summary>
  21. // If true, the lack of these components will instead make the surgery valid.
  22. // </summary>
  23. [DataField]
  24. public bool Inverse = false;
  25. }