# Conflicts: # Content.Client/Launcher/LauncherConnecting.cs # Content.Client/Launcher/LauncherConnectingGui.xaml # Content.Client/Launcher/LauncherConnectingGui.xaml.cs # Content.Server/Administration/Managers/BanManager.cs # Content.Server/Medical/Components/HealthAnalyzerComponent.cs # Content.Server/Medical/HealthAnalyzerSystem.cs # Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs # Content.Server/StationEvents/Events/RandomSentienceRule.cs # Content.Shared/Interaction/Components/BlockMovementComponent.cs # Content.Shared/Interaction/SharedInteractionSystem.Blocking.cs # Content.Shared/Materials/SharedMaterialReclaimerSystem.cs # Resources/Prototypes/Accents/word_replacements.yml # Resources/Prototypes/Catalog/Fills/Books/bookshelf.yml # Resources/Prototypes/Entities/Mobs/Customization/Markings/cat_parts.yml # Resources/Prototypes/Entities/Mobs/NPCs/silicon.yml # Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml # Resources/Prototypes/Entities/Structures/Machines/lathe.yml # Resources/Prototypes/Objectives/objectiveGroups.yml # Resources/Prototypes/Objectives/stealTargetGroups.yml # Resources/Prototypes/Roles/Jobs/Security/detective.yml # Resources/Prototypes/Species/human.yml # Resources/Prototypes/Voice/speech_emotes.yml # Resources/ServerInfo/Guidebook/Antagonist/Antagonists.xml # Resources/ServerInfo/Guidebook/Antagonist/MinorAntagonists.xml # Resources/ServerInfo/Guidebook/Antagonist/Nuclear Operatives.xml # Resources/ServerInfo/Guidebook/Antagonist/Revolutionaries.xml # Resources/ServerInfo/Guidebook/Antagonist/SpaceNinja.xml # Resources/ServerInfo/Guidebook/Antagonist/Traitors.xml # Resources/ServerInfo/Guidebook/Antagonist/Zombies.xml # Resources/migration.yml
69 lines
2 KiB
C#
69 lines
2 KiB
C#
using Robust.Shared.Audio;
|
|
using Content.Shared.Damage.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
|
|
namespace Content.Server.Medical.Components;
|
|
|
|
/// <summary>
|
|
/// After scanning, retrieves the target Uid to use with its related UI.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Requires <c>ItemToggleComponent</c>.
|
|
/// </remarks>
|
|
[RegisterComponent, AutoGenerateComponentPause]
|
|
[Access(typeof(HealthAnalyzerSystem), typeof(CryoPodSystem))]
|
|
public sealed partial class HealthAnalyzerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// When should the next update be sent for the patient
|
|
/// </summary>
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
[AutoPausedField]
|
|
public TimeSpan NextUpdate = TimeSpan.Zero;
|
|
|
|
/// <summary>
|
|
/// The delay between patient health updates
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan UpdateInterval = TimeSpan.FromSeconds(1);
|
|
|
|
/// <summary>
|
|
/// How long it takes to scan someone.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan ScanDelay = TimeSpan.FromSeconds(0.8);
|
|
|
|
/// <summary>
|
|
/// Which entity has been scanned, for continuous updates
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityUid? ScannedEntity;
|
|
|
|
/// <summary>
|
|
/// The maximum range in tiles at which the analyzer can receive continuous updates
|
|
/// </summary>
|
|
[DataField]
|
|
public float MaxScanRange = 2.5f;
|
|
|
|
/// <summary>
|
|
/// Sound played on scanning begin
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier? ScanningBeginSound;
|
|
|
|
/// <summary>
|
|
/// Sound played on scanning end
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier? ScanningEndSound;
|
|
|
|
/// <summary>
|
|
/// Whether to show up the popup
|
|
/// </summary>
|
|
[DataField]
|
|
public bool Silent;
|
|
|
|
[DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer<DamageContainerPrototype>))]
|
|
public List<string>? DamageContainers;
|
|
}
|