using Content.Shared.DeviceLinking;
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
namespace Content.Server.Anomaly.Components;
/// <summary>
/// a device that allows you to translate anomaly activity into multitool signals.
/// </summary>
[RegisterComponent, Access(typeof(AnomalySynchronizerSystem))]
public sealed partial class AnomalySynchronizerComponent : Component
{
/// The uid of the anomaly to which the synchronizer is connected.
[DataField, ViewVariables(VVAccess.ReadWrite)]
public EntityUid? ConnectedAnomaly;
/// Should the anomaly pulse when connected to the synchronizer?
[DataField]
public bool PulseOnConnect = true;
/// Should the anomaly pulse when disconnected from synchronizer?
public bool PulseOnDisconnect = false;
/// minimum distance from the synchronizer to the anomaly to be attached
public float AttachRange = 0.4f;
public ProtoId<SourcePortPrototype> DecayingPort = "Decaying";
public ProtoId<SourcePortPrototype> StabilizePort = "Stabilize";
public ProtoId<SourcePortPrototype> GrowingPort = "Growing";
public ProtoId<SourcePortPrototype> PulsePort = "Pulse";
public ProtoId<SourcePortPrototype> SupercritPort = "Supercritical";
public SoundSpecifier ConnectedSound = new SoundPathSpecifier("/Audio/Machines/anomaly_sync_connect.ogg");
public SoundSpecifier DisconnectedSound = new SoundPathSpecifier("/Audio/Machines/anomaly_sync_connect.ogg");
}