* Material Reclaimer * Fix this test * autostack output, tweak volume, add upgrade examine * whitelist AND blacklist support why not * trying so hard to get this fucking test to work * EmoGarbage delves into MaterialArbitrageTest, never to return * VV and restore cloth to glory * make the system more robust * even more stuff has composition; add blacklist for important items * fix test fails * convert recycling * forgor :sadge: * lol * simply a modiCUM of doc commentary
33 lines
1.1 KiB
C#
33 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))]
|
|
public sealed 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)]
|
|
public TimeSpan EndTime;
|
|
|
|
/// <summary>
|
|
/// The length of the reclaiming process.
|
|
/// Used for calculations.
|
|
/// </summary>
|
|
[DataField("duration"), ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan Duration;
|
|
}
|