6
2026-01-24 12:49:55 +03:00

53 lines
1.4 KiB
C#

using Content.Shared.DeviceLinking;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.Xenoarchaeology.Equipment.Components;
/// <summary>
/// The console that is used for artifact analysis
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
public sealed partial class AnalysisConsoleComponent : Component
{
/// <summary>
/// The analyzer entity the console is linked.
/// Can be null if not linked.
/// </summary>
[DataField, AutoNetworkedField]
public NetEntity? AnalyzerEntity;
[DataField]
public SoundSpecifier? ScanFinishedSound = new SoundPathSpecifier("/Audio/Machines/scan_finish.ogg");
/// <summary>
/// The sound played when an artifact has points extracted.
/// </summary>
[DataField]
public SoundSpecifier? ExtractSound = new SoundPathSpecifier("/Audio/Effects/radpulse11.ogg")
{
Params = new AudioParams
{
Volume = 4,
}
};
/// <summary>
/// The machine linking port for the analyzer
/// </summary>
[DataField]
public ProtoId<SourcePortPrototype> LinkingPort = "ArtifactAnalyzerSender";
}
[Serializable, NetSerializable]
public enum ArtifactAnalyzerUiKey : byte
{
Key
}
[Serializable, NetSerializable]
public sealed class AnalysisConsoleExtractButtonPressedMessage : BoundUserInterfaceMessage;