diff --git a/Content.Client/HealthAnalyzer/UI/HealthAnalyzerBoundUserInterface.cs b/Content.Client/HealthAnalyzer/UI/HealthAnalyzerBoundUserInterface.cs
index a5dbe2d7dc..052726de3a 100644
--- a/Content.Client/HealthAnalyzer/UI/HealthAnalyzerBoundUserInterface.cs
+++ b/Content.Client/HealthAnalyzer/UI/HealthAnalyzerBoundUserInterface.cs
@@ -1,8 +1,7 @@
-using JetBrains.Annotations;
+using Content.Shared.MedicalScanner;
+using JetBrains.Annotations;
using Robust.Client.GameObjects;
-using static Content.Shared.MedicalScanner.SharedHealthAnalyzerComponent;
-
namespace Content.Client.HealthAnalyzer.UI
{
[UsedImplicitly]
diff --git a/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs b/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs
index 2a7afdd716..1edd61b766 100644
--- a/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs
+++ b/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs
@@ -1,14 +1,14 @@
+using System.Text;
using Content.Shared.Damage;
using Content.Shared.Damage.Prototypes;
using Content.Shared.Disease.Components;
using Content.Shared.FixedPoint;
using Content.Shared.IdentityManagement;
+using Content.Shared.MedicalScanner;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Prototypes;
-using System.Text;
-using static Content.Shared.MedicalScanner.SharedHealthAnalyzerComponent;
namespace Content.Client.HealthAnalyzer.UI
{
diff --git a/Content.Server/Medical/Components/HealthAnalyzerComponent.cs b/Content.Server/Medical/Components/HealthAnalyzerComponent.cs
index 793b6e628d..150d62c89f 100644
--- a/Content.Server/Medical/Components/HealthAnalyzerComponent.cs
+++ b/Content.Server/Medical/Components/HealthAnalyzerComponent.cs
@@ -1,4 +1,3 @@
-using System.Threading;
using Content.Server.UserInterface;
using Content.Shared.Disease;
using Content.Shared.MedicalScanner;
@@ -12,8 +11,7 @@ namespace Content.Server.Medical.Components
/// After scanning, retrieves the target Uid to use with its related UI.
///
[RegisterComponent]
- [ComponentReference(typeof(SharedHealthAnalyzerComponent))]
- public sealed class HealthAnalyzerComponent : SharedHealthAnalyzerComponent
+ public sealed class HealthAnalyzerComponent : Component
{
///
/// How long it takes to scan someone.
@@ -27,13 +25,13 @@ namespace Content.Server.Medical.Components
/// Sound played on scanning begin
///
[DataField("scanningBeginSound")]
- public SoundSpecifier? ScanningBeginSound = null;
+ public SoundSpecifier? ScanningBeginSound;
///
/// Sound played on scanning end
///
[DataField("scanningEndSound")]
- public SoundSpecifier? ScanningEndSound = null;
+ public SoundSpecifier? ScanningEndSound;
///
/// The disease this will give people.
diff --git a/Content.Server/Medical/CryoPodSystem.cs b/Content.Server/Medical/CryoPodSystem.cs
index e45f2f920f..52fdad6018 100644
--- a/Content.Server/Medical/CryoPodSystem.cs
+++ b/Content.Server/Medical/CryoPodSystem.cs
@@ -165,8 +165,8 @@ public sealed partial class CryoPodSystem: SharedCryoPodSystem
{
_userInterfaceSystem.TrySendUiMessage(
uid,
- SharedHealthAnalyzerComponent.HealthAnalyzerUiKey.Key,
- new SharedHealthAnalyzerComponent.HealthAnalyzerScannedUserMessage(cryoPodComponent.BodyContainer.ContainedEntity));
+ HealthAnalyzerUiKey.Key,
+ new HealthAnalyzerScannedUserMessage(cryoPodComponent.BodyContainer.ContainedEntity));
}
private void OnInteractUsing(EntityUid uid, CryoPodComponent cryoPodComponent, InteractUsingEvent args)
@@ -205,7 +205,7 @@ public sealed partial class CryoPodSystem: SharedCryoPodSystem
else
{
RemComp(uid);
- _uiSystem.TryCloseAll(uid, SharedHealthAnalyzerComponent.HealthAnalyzerUiKey.Key);
+ _uiSystem.TryCloseAll(uid, HealthAnalyzerUiKey.Key);
}
UpdateAppearance(uid, component);
}
diff --git a/Content.Server/Medical/HealthAnalyzerSystem.cs b/Content.Server/Medical/HealthAnalyzerSystem.cs
index 67fa2ebac8..197656ab70 100644
--- a/Content.Server/Medical/HealthAnalyzerSystem.cs
+++ b/Content.Server/Medical/HealthAnalyzerSystem.cs
@@ -1,5 +1,5 @@
-using Content.Server.Medical.Components;
using Content.Server.Disease;
+using Content.Server.Medical.Components;
using Content.Server.Popups;
using Content.Shared.Damage;
using Content.Shared.DoAfter;
@@ -8,7 +8,6 @@ using Content.Shared.Interaction;
using Content.Shared.MedicalScanner;
using Content.Shared.Mobs.Components;
using Robust.Server.GameObjects;
-using static Content.Shared.MedicalScanner.SharedHealthAnalyzerComponent;
namespace Content.Server.Medical
{
diff --git a/Content.Shared/MedicalScanner/HealthAnalyzerDoAfterEvent.cs b/Content.Shared/MedicalScanner/HealthAnalyzerDoAfterEvent.cs
new file mode 100644
index 0000000000..ca2fea68cc
--- /dev/null
+++ b/Content.Shared/MedicalScanner/HealthAnalyzerDoAfterEvent.cs
@@ -0,0 +1,9 @@
+using Content.Shared.DoAfter;
+using Robust.Shared.Serialization;
+
+namespace Content.Shared.MedicalScanner;
+
+[Serializable, NetSerializable]
+public sealed class HealthAnalyzerDoAfterEvent : SimpleDoAfterEvent
+{
+}
diff --git a/Content.Shared/MedicalScanner/HealthAnalyzerScannedUserMessage.cs b/Content.Shared/MedicalScanner/HealthAnalyzerScannedUserMessage.cs
new file mode 100644
index 0000000000..1dd00967b8
--- /dev/null
+++ b/Content.Shared/MedicalScanner/HealthAnalyzerScannedUserMessage.cs
@@ -0,0 +1,18 @@
+using Robust.Shared.Serialization;
+
+namespace Content.Shared.MedicalScanner;
+
+///
+/// On interacting with an entity retrieves the entity UID for use with getting the current damage of the mob.
+///
+[Serializable, NetSerializable]
+public sealed class HealthAnalyzerScannedUserMessage : BoundUserInterfaceMessage
+{
+ public readonly EntityUid? TargetEntity;
+
+ public HealthAnalyzerScannedUserMessage(EntityUid? targetEntity)
+ {
+ TargetEntity = targetEntity;
+ }
+}
+
diff --git a/Content.Shared/MedicalScanner/HealthAnalyzerUiKey.cs b/Content.Shared/MedicalScanner/HealthAnalyzerUiKey.cs
new file mode 100644
index 0000000000..3b42d5e5fc
--- /dev/null
+++ b/Content.Shared/MedicalScanner/HealthAnalyzerUiKey.cs
@@ -0,0 +1,9 @@
+using Robust.Shared.Serialization;
+
+namespace Content.Shared.MedicalScanner;
+
+[Serializable, NetSerializable]
+public enum HealthAnalyzerUiKey : byte
+{
+ Key
+}
diff --git a/Content.Shared/MedicalScanner/SharedHealthAnalyzerComponent.cs b/Content.Shared/MedicalScanner/SharedHealthAnalyzerComponent.cs
deleted file mode 100644
index 712911125c..0000000000
--- a/Content.Shared/MedicalScanner/SharedHealthAnalyzerComponent.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using Content.Shared.DoAfter;
-using Robust.Shared.Serialization;
-
-namespace Content.Shared.MedicalScanner
-{
- public abstract class SharedHealthAnalyzerComponent : Component
- {
- ///
- /// On interacting with an entity retrieves the entity UID for use with getting the current damage of the mob.
- ///
- [Serializable, NetSerializable]
- public sealed class HealthAnalyzerScannedUserMessage : BoundUserInterfaceMessage
- {
- public readonly EntityUid? TargetEntity;
-
- public HealthAnalyzerScannedUserMessage(EntityUid? targetEntity)
- {
- TargetEntity = targetEntity;
- }
- }
-
- [Serializable, NetSerializable]
- public enum HealthAnalyzerUiKey : byte
- {
- Key
- }
- }
-
- [Serializable, NetSerializable]
- public sealed class HealthAnalyzerDoAfterEvent : SimpleDoAfterEvent
- {
- }
-}