mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 02:41:18 +03:00
39 lines
1.4 KiB
C#
39 lines
1.4 KiB
C#
using Content.Shared.Chemistry.EntitySystems;
|
|
using Robust.Shared.Containers;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Chemistry.Components.SolutionManager;
|
|
|
|
/// <remarks>
|
|
/// Exists for simple backwards compatibility.
|
|
/// On <see cref="ComponentInit"/> this component will transfer all its data where it can to a <see cref="SolutionManagerComponent"/>
|
|
/// Then it will delete itself.
|
|
/// This component will be deleted in the indeterminate future.
|
|
/// </remarks>
|
|
[Obsolete]
|
|
[RegisterComponent]
|
|
[Access(typeof(SharedSolutionContainerSystem))]
|
|
public sealed partial class SolutionContainerManagerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The default amount of space that will be allocated for solutions in solution containers.
|
|
/// Most solution containers will only contain 1-2 solutions.
|
|
/// </summary>
|
|
public const int DefaultCapacity = 2;
|
|
|
|
/// <summary>
|
|
/// The names of each solution container attached to this entity.
|
|
/// Actually accessing them must be done via <see cref="ContainerManagerComponent"/>.
|
|
/// </summary>
|
|
[DataField]
|
|
public HashSet<string> Containers = new(DefaultCapacity);
|
|
|
|
/// <summary>
|
|
/// The set of solutions to load onto this entity during mapinit.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Should be null after mapinit.
|
|
/// </remarks>
|
|
[DataField]
|
|
public Dictionary<string, Solution>? Solutions;
|
|
}
|