-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]
+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
{
-using System.Threading;
using Content.Server.UserInterface;
using Content.Shared.Disease;
using Content.Shared.MedicalScanner;
/// After scanning, retrieves the target Uid to use with its related UI.
/// </summary>
[RegisterComponent]
- [ComponentReference(typeof(SharedHealthAnalyzerComponent))]
- public sealed class HealthAnalyzerComponent : SharedHealthAnalyzerComponent
+ public sealed class HealthAnalyzerComponent : Component
{
/// <summary>
/// How long it takes to scan someone.
/// Sound played on scanning begin
/// </summary>
[DataField("scanningBeginSound")]
- public SoundSpecifier? ScanningBeginSound = null;
+ public SoundSpecifier? ScanningBeginSound;
/// <summary>
/// Sound played on scanning end
/// </summary>
[DataField("scanningEndSound")]
- public SoundSpecifier? ScanningEndSound = null;
+ public SoundSpecifier? ScanningEndSound;
/// <summary>
/// The disease this will give people.
{
_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)
else
{
RemComp<ActiveCryoPodComponent>(uid);
- _uiSystem.TryCloseAll(uid, SharedHealthAnalyzerComponent.HealthAnalyzerUiKey.Key);
+ _uiSystem.TryCloseAll(uid, HealthAnalyzerUiKey.Key);
}
UpdateAppearance(uid, component);
}
-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;
using Content.Shared.MedicalScanner;
using Content.Shared.Mobs.Components;
using Robust.Server.GameObjects;
-using static Content.Shared.MedicalScanner.SharedHealthAnalyzerComponent;
namespace Content.Server.Medical
{
--- /dev/null
+using Content.Shared.DoAfter;
+using Robust.Shared.Serialization;
+
+namespace Content.Shared.MedicalScanner;
+
+[Serializable, NetSerializable]
+public sealed class HealthAnalyzerDoAfterEvent : SimpleDoAfterEvent
+{
+}
--- /dev/null
+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 readonly EntityUid? TargetEntity;
+
+ public HealthAnalyzerScannedUserMessage(EntityUid? targetEntity)
+ {
+ TargetEntity = targetEntity;
+ }
+}
+
--- /dev/null
+using Robust.Shared.Serialization;
+
+namespace Content.Shared.MedicalScanner;
+
+[Serializable, NetSerializable]
+public enum HealthAnalyzerUiKey : byte
+{
+ Key
+}
+++ /dev/null
-using Content.Shared.DoAfter;
-using Robust.Shared.Serialization;
-
-namespace Content.Shared.MedicalScanner
-{
- public abstract class SharedHealthAnalyzerComponent : Component
- {
- /// <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 readonly EntityUid? TargetEntity;
-
- public HealthAnalyzerScannedUserMessage(EntityUid? targetEntity)
- {
- TargetEntity = targetEntity;
- }
- }
-
- [Serializable, NetSerializable]
- public enum HealthAnalyzerUiKey : byte
- {
- Key
- }
- }
-
- [Serializable, NetSerializable]
- public sealed class HealthAnalyzerDoAfterEvent : SimpleDoAfterEvent
- {
- }
-}