ActiveArtifactAnalyzerComponent.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Robust.Shared.Serialization.TypeSerializers.Implementations;
  2. namespace Content.Server.Xenoarchaeology.Equipment.Components;
  3. /// <summary>
  4. /// Activecomp used for tracking artifact analyzers that are currently
  5. /// in the process of scanning an artifact.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class ActiveArtifactAnalyzerComponent : Component
  9. {
  10. /// <summary>
  11. /// When did the scanning start or last resume?
  12. /// </summary>
  13. [DataField("startTime", customTypeSerializer: typeof(TimespanSerializer))]
  14. public TimeSpan StartTime;
  15. /// <summary>
  16. /// When pausing, this will store the duration the scan has already been running for.
  17. /// </summary>
  18. [ViewVariables(VVAccess.ReadWrite)]
  19. public TimeSpan AccumulatedRunTime;
  20. /// <summary>
  21. /// Is analysis paused?
  22. /// It could be when the Artifact Analyzer has no power, for example.
  23. /// </summary>
  24. [ViewVariables(VVAccess.ReadWrite)]
  25. public bool AnalysisPaused = false;
  26. /// <summary>
  27. /// What is being scanned?
  28. /// </summary>
  29. [DataField]
  30. public EntityUid Artifact;
  31. }