Moves SolutionContainerManagerComponent to Shared. (#20944)

This commit is contained in:
TemporalOroboros
2023-10-14 09:45:28 -07:00
committed by GitHub
parent 546fa44526
commit 0775ab6a14
91 changed files with 200 additions and 211 deletions

View File

@@ -2,7 +2,7 @@ using Content.Server.Chemistry.EntitySystems;
using Content.Shared.Random;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Chemistry.Components.SolutionManager;
namespace Content.Server.Chemistry.Components;
/// <summary>
/// Fills a solution container randomly using a weighted random prototype

View File

@@ -1,16 +0,0 @@
namespace Content.Server.Chemistry.Components.SolutionManager
{
/// <summary>
/// Denotes the solution that can removed be with syringes.
/// </summary>
[RegisterComponent]
public sealed partial class DrawableSolutionComponent : Component
{
/// <summary>
/// Solution name that can be removed with syringes.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("solution")]
public string Solution { get; set; } = "default";
}
}

View File

@@ -1,10 +0,0 @@
namespace Content.Server.Chemistry.Components.SolutionManager
{
[RegisterComponent]
public sealed partial class ExaminableSolutionComponent: Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("solution")]
public string Solution { get; set; } = "default";
}
}

View File

@@ -1,17 +0,0 @@
namespace Content.Server.Chemistry.Components.SolutionManager
{
/// <summary>
/// Denotes a solution which can be added with syringes.
/// </summary>
[RegisterComponent]
public sealed partial class InjectableSolutionComponent : Component
{
/// <summary>
/// Solution name which can be added with syringes.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("solution")]
public string Solution { get; set; } = "default";
}
}

View File

@@ -1,14 +0,0 @@
using Content.Server.Chemistry.EntitySystems;
using Content.Shared.Chemistry.Components;
namespace Content.Server.Chemistry.Components.SolutionManager
{
[RegisterComponent]
[Access(typeof(SolutionContainerSystem))]
public sealed partial class SolutionContainerManagerComponent : Component
{
[DataField("solutions")]
[Access(typeof(SolutionContainerSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
public Dictionary<string, Solution> Solutions = new();
}
}