Files

33 lines
888 B
C#
Raw Permalink Normal View History

2023-03-23 01:53:32 -04:00
using Content.Shared.Anomaly;
2023-01-17 00:05:20 -05:00
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
2023-01-17 00:05:20 -05:00
namespace Content.Shared.Anomaly.Components;
2023-01-17 00:05:20 -05:00
/// <summary>
/// This is used for scanning anomalies and
/// displaying information about them in the ui
/// </summary>
[RegisterComponent, Access(typeof(SharedAnomalyScannerSystem))]
[NetworkedComponent]
public sealed partial class AnomalyScannerComponent : Component
2023-01-17 00:05:20 -05:00
{
/// <summary>
/// The anomaly that was last scanned by this scanner.
/// </summary>
[ViewVariables]
public EntityUid? ScannedAnomaly;
/// <summary>
/// How long the scan takes
/// </summary>
[DataField]
2023-01-17 00:05:20 -05:00
public float ScanDoAfterDuration = 5;
/// <summary>
/// The sound plays when the scan finished
/// </summary>
[DataField]
2023-01-17 00:05:20 -05:00
public SoundSpecifier? CompleteSound = new SoundPathSpecifier("/Audio/Items/beep.ogg");
}