Files
tbd-station-14/Content.Shared/Chemistry/Components/ScoopableSolutionComponent.cs
deltanedas 1db178b632 scoopable ash and foam, solution transfer prediction (#25832)
* move SolutionTransfer to shared and predict as much as possible

* fully move OpenableSystem to shared now that SolutionTransfer is

* fix imports for everything

* doc for solution transfer system

* trolling

* add scoopable system

* make ash and foam scoopable

* untroll

* untroll real

* make clickable it work

* troll

* the scooping room

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2024-04-01 17:27:39 +11:00

32 lines
1.0 KiB
C#

using Content.Shared.Chemistry.EntitySystems;
using Robust.Shared.GameStates;
namespace Content.Shared.Chemistry.Components;
/// <summary>
/// Basically reverse spiking, instead of using the solution-entity on a beaker, you use the beaker on the solution-entity.
/// If there is not enough volume it will stay in the solution-entity rather than spill onto the floor.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(ScoopableSolutionSystem))]
public sealed partial class ScoopableSolutionComponent : Component
{
/// <summary>
/// Solution name that can be scooped from.
/// </summary>
[DataField]
public string Solution = "default";
/// <summary>
/// If true, when the whole solution is scooped up the entity will be deleted.
/// </summary>
[DataField]
public bool Delete = true;
/// <summary>
/// Popup to show the user when scooping.
/// Passed entities "scooped" and "beaker".
/// </summary>
[DataField]
public LocId Popup = "scoopable-component-popup";
}