using Content.Shared.Paper; using Robust.Shared.Audio; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.Medical.Components; /// /// Extends upstream's HealthAnalyzerComponent. /// /// public sealed partial class HealthAnalyzerComponent : Component { /// /// Time when the component can print again /// [DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField] public TimeSpan PrintAllowedAfter = TimeSpan.Zero; /// /// Cooldown between individual prints to prevent entity and noise spam. /// [DataField] public TimeSpan PrintCooldown = TimeSpan.FromSeconds(5); /// /// Prototype of an entity to use as a template for printing. The paper may contain placeholders (wrapped in braces) /// which will be filled in during printing. /// [DataField] public EntProtoId PrintTemplate = "PaperWrittenMedicalMedtekPatientRecord"; [DataField] public SoundSpecifier PrintReportSound = new SoundPathSpecifier("/Audio/Machines/printer.ogg"); }