2023-04-10 00:38:20 -04:00
|
|
|
|
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>
|
2024-02-26 04:36:19 +01:00
|
|
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedMaterialReclaimerSystem)), AutoGenerateComponentPause]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class ActiveMaterialReclaimerComponent : Component
|
2023-04-10 00:38:20 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <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)]
|
2024-02-26 04:36:19 +01:00
|
|
|
|
[AutoPausedField]
|
2023-04-10 00:38:20 -04:00
|
|
|
|
public TimeSpan EndTime;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The length of the reclaiming process.
|
|
|
|
|
|
/// Used for calculations.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("duration"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
|
public TimeSpan Duration;
|
|
|
|
|
|
}
|