Files
tbd-station-14/Content.Shared/Chemistry/Components/RefillableSolutionComponent.cs
SlamBamActionman c6352786f1 Add doafter to filling the hypopen (#40538)
* Initial commit

* Small QOL buff

* Review changes

* Ch-ch-ch-ch-chaaaanges

* Review changes

* oops

* Oh ya fix the fill thing

* cleanup warnings make a few more private methods

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2025-10-21 22:05:44 +00:00

34 lines
1.1 KiB
C#

using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
namespace Content.Shared.Chemistry.Components;
/// <summary>
/// Denotes that the entity has a solution contained which can be easily added
/// to in controlled volumes. This should go on things that are meant to be refilled, including
/// pouring things into a beaker. The action for this is represented via clicking.
///
/// To represent it being possible to just dump entire volumes at once into an entity, see <see cref="DumpableSolutionComponent"/>.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class RefillableSolutionComponent : Component
{
/// <summary>
/// Solution name that can added to easily.
/// </summary>
[DataField]
public string Solution = "default";
/// <summary>
/// The maximum amount that can be transferred to the solution at once
/// </summary>
[DataField]
public FixedPoint2? MaxRefill = null;
/// <summary>
/// The refill doafter time required to transfer reagents into the solution.
/// </summary>
[DataField]
public TimeSpan RefillTime = TimeSpan.Zero;
}