using Content.Shared.Chemistry.Components; using Content.Shared.Chemistry.Components.SolutionManager; using Content.Shared.Chemistry.EntitySystems; using Content.Shared.FixedPoint; using Robust.Shared.Containers; using Robust.Shared.Map; using Robust.Shared.Utility; using System.Numerics; namespace Content.Server.Chemistry.Containers.EntitySystems; [Obsolete("This is being depreciated. Use SharedSolutionContainerSystem instead!")] public sealed partial class SolutionContainerSystem : SharedSolutionContainerSystem { [Obsolete("This is being depreciated. Use the ensure methods in SharedSolutionContainerSystem instead!")] public Solution EnsureSolution(Entity entity, string name) => EnsureSolution(entity, name, out _); [Obsolete("This is being depreciated. Use the ensure methods in SharedSolutionContainerSystem instead!")] public Solution EnsureSolution(Entity entity, string name, out bool existed) => EnsureSolution(entity, name, FixedPoint2.Zero, out existed); [Obsolete("This is being depreciated. Use the ensure methods in SharedSolutionContainerSystem instead!")] public Solution EnsureSolution(Entity entity, string name, FixedPoint2 maxVol, out bool existed) => EnsureSolution(entity, name, maxVol, null, out existed); [Obsolete("This is being depreciated. Use the ensure methods in SharedSolutionContainerSystem instead!")] public Solution EnsureSolution(Entity entity, string name, FixedPoint2 maxVol, Solution? prototype, out bool existed) { EnsureSolution(entity, name, maxVol, prototype, out existed, out var solution); return solution!;//solution is only ever null on the client, so we can suppress this } [Obsolete("This is being depreciated. Use the ensure methods in SharedSolutionContainerSystem instead!")] public Entity EnsureSolutionEntity( Entity entity, string name, FixedPoint2 maxVol, Solution? prototype, out bool existed) { EnsureSolutionEntity(entity, name, out existed, out var solEnt, maxVol, prototype); return solEnt!.Value;//solEnt is only ever null on the client, so we can suppress this } }