1
0

HealthAnalyzerScannedUserMessage.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // SPDX-FileCopyrightText: 2023 DrSmugleaf <DrSmugleaf@users.noreply.github.com>
  2. // SPDX-FileCopyrightText: 2023 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
  3. // SPDX-FileCopyrightText: 2024 Rainfey <rainfey0+github@gmail.com>
  4. // SPDX-FileCopyrightText: 2024 Saphire Lattice <lattice@saphi.re>
  5. // SPDX-FileCopyrightText: 2024 Whisper <121047731+QuietlyWhisper@users.noreply.github.com>
  6. // SPDX-FileCopyrightText: 2024 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
  7. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  8. //
  9. // SPDX-License-Identifier: AGPL-3.0-or-later
  10. using Content.Shared._Shitmed.Targeting; // Shitmed Change
  11. using Robust.Shared.Serialization;
  12. namespace Content.Shared.MedicalScanner;
  13. /// <summary>
  14. /// On interacting with an entity retrieves the entity UID for use with getting the current damage of the mob.
  15. /// </summary>
  16. [Serializable, NetSerializable]
  17. public sealed class HealthAnalyzerScannedUserMessage : BoundUserInterfaceMessage
  18. {
  19. public readonly NetEntity? TargetEntity;
  20. public float Temperature;
  21. public float BloodLevel;
  22. public bool? ScanMode;
  23. public bool? Bleeding;
  24. public bool? Unrevivable;
  25. public Dictionary<TargetBodyPart, TargetIntegrity>? Body; // Shitmed Change
  26. public NetEntity? Part; // Shitmed Change
  27. public HealthAnalyzerScannedUserMessage(NetEntity? targetEntity, float temperature, float bloodLevel, bool? scanMode, bool? bleeding, bool? unrevivable, Dictionary<TargetBodyPart, TargetIntegrity>? body, NetEntity? part = null) // Shitmed Change
  28. {
  29. TargetEntity = targetEntity;
  30. Temperature = temperature;
  31. BloodLevel = bloodLevel;
  32. ScanMode = scanMode;
  33. Bleeding = bleeding;
  34. Body = body; // Shitmed Change
  35. Part = part; // Shitmed Change
  36. Unrevivable = unrevivable;
  37. }
  38. }
  39. // Shitmed Change Start
  40. [Serializable, NetSerializable]
  41. public sealed class HealthAnalyzerPartMessage(NetEntity? owner, TargetBodyPart? bodyPart) : BoundUserInterfaceMessage
  42. {
  43. public readonly NetEntity? Owner = owner;
  44. public readonly TargetBodyPart? BodyPart = bodyPart;
  45. }
  46. // Shitmed Change End