| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using Robust.Shared.Audio;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
- 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(MedBookSystem), typeof(CryoPodSystem))]
- public sealed partial class MedBookComponent : 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(5);
- /// <summary>
- /// Which entity has been scanned, for continuous updates
- /// </summary>
- [DataField]
- public EntityUid? ScannedEntity;
- /// <summary>
- /// Shitmed Change: The body part that is currently being scanned.
- /// </summary>
- [DataField]
- public EntityUid? CurrentBodyPart;
- /// <summary>
- /// The maximum range in tiles at which the analyzer can receive continuous updates
- /// </summary>
- [DataField]
- public float MaxScanRange = 1.5f;
- /// <summary>
- /// Whether to show up the popup
- /// </summary>
- [DataField]
- public bool Silent;
- }
|