RefillableSolutionComponent.cs 790 B

12345678910111213141516171819202122232425
  1. using Content.Shared.FixedPoint;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Chemistry.Components;
  4. /// <summary>
  5. /// Reagents that can be added easily. For example like
  6. /// pouring something into another beaker, glass, or into the gas
  7. /// tank of a car.
  8. /// </summary>
  9. [RegisterComponent, NetworkedComponent]
  10. public sealed partial class RefillableSolutionComponent : Component
  11. {
  12. /// <summary>
  13. /// Solution name that can added to easily.
  14. /// </summary>
  15. [DataField, ViewVariables(VVAccess.ReadWrite)]
  16. public string Solution = "default";
  17. /// <summary>
  18. /// The maximum amount that can be transferred to the solution at once
  19. /// </summary>
  20. [DataField, ViewVariables(VVAccess.ReadWrite)]
  21. public FixedPoint2? MaxRefill = null;
  22. }