62 lines
2.2 KiB
C#
62 lines
2.2 KiB
C#
using Content.Shared._DV.MedicalRecords; // DeltaV - Medical Records
|
|
using Content.Shared._Shitmed.Targeting; // Shitmed Change
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.MedicalScanner;
|
|
|
|
/// <summary>
|
|
/// On interacting with an entity retrieves the entity UID for use with getting the current damage of the mob.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class HealthAnalyzerScannedUserMessage : BoundUserInterfaceMessage
|
|
{
|
|
public HealthAnalyzerUiState State;
|
|
|
|
public HealthAnalyzerScannedUserMessage(HealthAnalyzerUiState state)
|
|
{
|
|
State = state;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Contains the current state of a health analyzer control. Used for the health analyzer and cryo pod.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public struct HealthAnalyzerUiState
|
|
{
|
|
public readonly NetEntity? TargetEntity;
|
|
public float Temperature;
|
|
public float BloodLevel;
|
|
public bool? ScanMode;
|
|
public bool? Bleeding;
|
|
public bool? Unrevivable;
|
|
public Dictionary<TargetBodyPart, TargetIntegrity>? Body; // Shitmed Change
|
|
public NetEntity? Part; // Shitmed Change
|
|
public MedicalRecord? MedicalRecord; // DeltaV - Medical Records
|
|
|
|
public HealthAnalyzerUiState() {}
|
|
|
|
public HealthAnalyzerUiState(NetEntity? targetEntity, float temperature, float bloodLevel, bool? scanMode, bool? bleeding, bool? unrevivable, Dictionary<TargetBodyPart, TargetIntegrity>? body, MedicalRecord? medicalRecord = null, NetEntity? part = null) // Shitmed Change // DeltaV - Medical Records
|
|
{
|
|
TargetEntity = targetEntity;
|
|
Temperature = temperature;
|
|
BloodLevel = bloodLevel;
|
|
ScanMode = scanMode;
|
|
Bleeding = bleeding;
|
|
Unrevivable = unrevivable;
|
|
Body = body; // Shitmed Change
|
|
Part = part; // Shitmed Change
|
|
MedicalRecord = medicalRecord; // DeltaV - Medical Records
|
|
}
|
|
}
|
|
|
|
// Shitmed Change Start
|
|
[Serializable, NetSerializable]
|
|
public sealed class HealthAnalyzerPartMessage(NetEntity? owner, TargetBodyPart? bodyPart) : BoundUserInterfaceMessage
|
|
{
|
|
public readonly NetEntity? Owner = owner;
|
|
public readonly TargetBodyPart? BodyPart = bodyPart;
|
|
|
|
}
|
|
// Shitmed Change End
|