fish-station/Content.Shared/Botany/Components/PlantAnalyzerComponent.cs
KaiserMaus 11cca765b8
Fix "ыыыы" prototype edition (#3514)
Co-authored-by: iertis <kanopus952@gmail.com>
Co-authored-by: Daniel | Orvex07 <d.b.orvex@gmail.com>
2025-12-27 18:23:10 +00:00

43 lines
1.4 KiB
C#

using Content.Shared.AbstractAnalyzer;
using Content.Shared.Paper;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Shared.Botany.Components;
/// <inheritdoc/>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentPause]
public sealed partial class PlantAnalyzerComponent : AbstractAnalyzerComponent
{
/// <inheritdoc/>
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
[AutoPausedField]
public override TimeSpan NextUpdate { get; set; } = TimeSpan.Zero;
/// <summary>
/// When will the analyzer be ready to print again?
/// </summary>
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
[AutoPausedField]
public TimeSpan PrintReadyAt = TimeSpan.Zero;
/// <summary>
/// How often can the analyzer print?
/// </summary>
[DataField]
public TimeSpan PrintCooldown = TimeSpan.FromSeconds(5);
/// <summary>
/// The sound that's played when the analyzer prints off a report.
/// </summary>
[DataField]
public SoundSpecifier SoundPrint = new SoundPathSpecifier("/Audio/Machines/short_print_and_rip.ogg");
/// <summary>
/// What the machine will print.
/// </summary>
[DataField]
public EntProtoId<PaperComponent> MachineOutput = "PlantAnalyzerReportPaper";
}