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

@@ -0,0 +1,15 @@
namespace Content.Shared.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

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

View File

@@ -0,0 +1,16 @@
namespace Content.Shared.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

@@ -0,0 +1,12 @@
using Content.Shared.Chemistry.EntitySystems;
namespace Content.Shared.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();
}