mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* burge * bruegr * YAML * two misc fixes * snoutta here * add tests --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: Janet Blackquill <uhhadd@gmail.com>
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using Content.Shared.Chemistry.EntitySystems;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Shared.Chemistry.Components;
|
|
|
|
/// <summary>
|
|
/// Passively increases a solution's quantity of a reagent.
|
|
/// </summary>
|
|
[RegisterComponent, AutoGenerateComponentPause, AutoGenerateComponentState, NetworkedComponent]
|
|
[Access(typeof(SolutionRegenerationSystem))]
|
|
public sealed partial class SolutionRegenerationComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The reagent(s) to be regenerated in the solution.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public Solution Generated = default!;
|
|
|
|
/// <summary>
|
|
/// How long it takes to regenerate once.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan Duration = TimeSpan.FromSeconds(1);
|
|
|
|
/// <summary>
|
|
/// The time when the next regeneration will occur.
|
|
/// </summary>
|
|
[DataField("nextChargeTime", customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
[AutoPausedField, AutoNetworkedField]
|
|
public TimeSpan NextRegenTime;
|
|
}
|