using Content.Shared.DeviceLinking;
using Robust.Shared.Audio;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.DeviceLinking.Components;
[RegisterComponent]
public sealed partial class SignalTimerComponent : Component
{
[DataField("delay"), ViewVariables(VVAccess.ReadWrite)]
public double Delay = 5;
///
/// This shows the Label: text box in the UI.
///
[DataField("canEditLabel"), ViewVariables(VVAccess.ReadWrite)]
public bool CanEditLabel = true;
///
/// The label, used for TextScreen visuals currently.
///
[DataField("label"), ViewVariables(VVAccess.ReadWrite)]
public string Label = "";
///
/// The port that gets signaled when the timer triggers.
///
[DataField("triggerPort", customTypeSerializer: typeof(PrototypeIdSerializer)), ViewVariables(VVAccess.ReadWrite)]
public string TriggerPort = "Timer";
///
/// The port that gets signaled when the timer starts.
///
[DataField("startPort", customTypeSerializer: typeof(PrototypeIdSerializer)), ViewVariables(VVAccess.ReadWrite)]
public string StartPort = "Start";
///
/// If not null, this timer will play this sound when done.
///
[DataField("doneSound"), ViewVariables(VVAccess.ReadWrite)]
public SoundSpecifier? DoneSound;
}