SharedTargetingSystem.cs 961 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-FileCopyrightText: 2024 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
  2. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  3. //
  4. // SPDX-License-Identifier: AGPL-3.0-or-later
  5. namespace Content.Shared._Shitmed.Targeting;
  6. public abstract class SharedTargetingSystem : EntitySystem
  7. {
  8. /// <summary>
  9. /// Returns all Valid target body parts as an array.
  10. /// </summary>
  11. public static TargetBodyPart[] GetValidParts()
  12. {
  13. var parts = new[]
  14. {
  15. TargetBodyPart.Head,
  16. TargetBodyPart.Torso,
  17. //TargetBodyPart.Groin,
  18. TargetBodyPart.LeftArm,
  19. TargetBodyPart.LeftHand,
  20. TargetBodyPart.LeftLeg,
  21. TargetBodyPart.LeftFoot,
  22. TargetBodyPart.RightArm,
  23. TargetBodyPart.RightHand,
  24. TargetBodyPart.RightLeg,
  25. TargetBodyPart.RightFoot,
  26. };
  27. return parts;
  28. }
  29. }