1
0

AnomalyScannerComponent.cs 868 B

123456789101112131415161718192021222324252627282930
  1. using Content.Shared.Anomaly;
  2. using Robust.Shared.Audio;
  3. namespace Content.Server.Anomaly.Components;
  4. /// <summary>
  5. /// This is used for scanning anomalies and
  6. /// displaying information about them in the ui
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(SharedAnomalySystem))]
  9. public sealed partial class AnomalyScannerComponent : Component
  10. {
  11. /// <summary>
  12. /// The anomaly that was last scanned by this scanner.
  13. /// </summary>
  14. [ViewVariables]
  15. public EntityUid? ScannedAnomaly;
  16. /// <summary>
  17. /// How long the scan takes
  18. /// </summary>
  19. [DataField("scanDoAfterDuration")]
  20. public float ScanDoAfterDuration = 5;
  21. /// <summary>
  22. /// The sound plays when the scan finished
  23. /// </summary>
  24. [DataField("completeSound")]
  25. public SoundSpecifier? CompleteSound = new SoundPathSpecifier("/Audio/Items/beep.ogg");
  26. }