using Robust.Shared.Serialization.TypeSerializers.Implementations;
namespace Content.Server.Xenoarchaeology.Equipment.Components;
///
/// Activecomp used for tracking artifact analyzers that are currently
/// in the process of scanning an artifact.
///
[RegisterComponent]
public sealed partial class ActiveArtifactAnalyzerComponent : Component
{
///
/// When did the scanning start or last resume?
///
[DataField("startTime", customTypeSerializer: typeof(TimespanSerializer))]
public TimeSpan StartTime;
///
/// When pausing, this will store the duration the scan has already been running for.
///
[ViewVariables(VVAccess.ReadWrite)]
public TimeSpan AccumulatedRunTime;
///
/// Is analysis paused?
/// It could be when the Artifact Analyzer has no power, for example.
///
[ViewVariables(VVAccess.ReadWrite)]
public bool AnalysisPaused = false;
///
/// What is being scanned?
///
[DataField]
public EntityUid Artifact;
}