using Content.Shared.Disease; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Disease.Components { [RegisterComponent] /// /// For shared behavior between both disease machines /// public sealed class DiseaseMachineComponent : Component { [DataField("delay")] public float Delay = 5f; /// /// How much time we've accumulated processing /// [ViewVariables] [DataField("accumulator")] public float Accumulator = 0f; /// /// The disease prototype currently being diagnosed /// [ViewVariables] public DiseasePrototype? Disease; /// /// What the machine will spawn /// [DataField("machineOutput", customTypeSerializer: typeof(PrototypeIdSerializer), required: true)] public string MachineOutput = string.Empty; } }