Files
tbd-station-14/Content.Shared/Materials/ActiveMaterialReclaimerComponent.cs
Pieter-Jan Briers e00f74505c Use new ComponentPauseGenerator (#25183)
Also includes some (non critical) changes to the solution file to re-organize the Roslyn components.
2024-02-26 14:36:19 +11:00

34 lines
1.1 KiB
C#

using Robust.Shared.Containers;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Shared.Materials;
/// <summary>
/// Tracker component for the process of reclaiming entities
/// <seealso cref="MaterialReclaimerComponent"/>
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedMaterialReclaimerSystem)), AutoGenerateComponentPause]
public sealed partial class ActiveMaterialReclaimerComponent : Component
{
/// <summary>
/// Container used to store the item currently being reclaimed
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public Container ReclaimingContainer = default!;
/// <summary>
/// When the reclaiming process ends.
/// </summary>
[DataField("endTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
[AutoPausedField]
public TimeSpan EndTime;
/// <summary>
/// The length of the reclaiming process.
/// Used for calculations.
/// </summary>
[DataField("duration"), ViewVariables(VVAccess.ReadWrite)]
public TimeSpan Duration;
}