# Conflicts: # Content.Client/Lobby/LobbyUIController.cs # Resources/Locale/en-US/chemistry/components/mixing-component.ftl # Resources/Prototypes/Entities/Mobs/Species/base.yml # Resources/Prototypes/Recipes/Crafting/crates.yml # Resources/ServerInfo/Guidebook/Mobs/Diona.xml # Resources/ServerInfo/Guidebook/Mobs/Species.xml # Resources/ServerInfo/Guidebook/Science/Science.xml # Resources/ServerInfo/Guidebook/Science/Technologies.xml # Resources/Textures/Objects/Weapons/Melee/fireaxeflaming.rsi/icon.png # Resources/Textures/Structures/Wallmounts/intercom.rsi/base.png # Resources/Textures/Structures/Wallmounts/intercom.rsi/broadcasting.png # Resources/Textures/Structures/Wallmounts/intercom.rsi/build.png # Resources/Textures/Structures/Wallmounts/intercom.rsi/panel.png # Resources/Textures/Structures/Wallmounts/intercom.rsi/speaker.png # Resources/Textures/Structures/Wallmounts/intercom.rsi/unshaded.png # Resources/Textures/Tiles/attributions.yml # Resources/migration.yml
63 lines
1.9 KiB
C#
63 lines
1.9 KiB
C#
using Content.Shared.Damage.Prototypes;
|
|
using Robust.Shared.Audio;
|
|
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;
|
|
|
|
[DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer<DamageContainerPrototype>))]
|
|
public List<string>? DamageContainers;
|
|
}
|