SolutionComponent.cs 1.2 KB

12345678910111213141516171819202122
  1. using Content.Shared.Chemistry.Components.SolutionManager;
  2. using Content.Shared.Materials;
  3. using Robust.Shared.GameStates;
  4. namespace Content.Shared.Chemistry.Components;
  5. /// <summary>
  6. /// <para>Holds the composition of an entity made from reagents and its reagent temperature.</para>
  7. /// <para>If the entity is used to represent a collection of reagents inside of a container such as a beaker, syringe, bloodstream, food, or similar the entity is tracked by a <see cref="SolutionContainerManagerComponent"/> on the container and has a <see cref="ContainedSolutionComponent"/> tracking which container it's in.</para>
  8. /// </summary>
  9. /// <remarks>
  10. /// <para>Once reagents and materials have been merged this component should be depricated in favor of using a combination of <see cref="PhysicalCompositionComponent"/> and <see cref="Content.Server.Temperature.Components.TemperatureComponent"/>. May require minor reworks to both.</para>
  11. /// </remarks>
  12. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  13. public sealed partial class SolutionComponent : Component
  14. {
  15. /// <summary>
  16. /// <para>The reagents the entity is composed of and their temperature.</para>
  17. /// </summary>
  18. [DataField, AutoNetworkedField]
  19. public Solution Solution = new();
  20. }