Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
/// Denotes the solution that can removed be with syringes.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class DrawableSolutionComponent : Component
|
||||
public sealed partial class DrawableSolutionComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Solution name that can be removed with syringes.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace Content.Server.Chemistry.Components.SolutionManager
|
||||
{
|
||||
[RegisterComponent]
|
||||
public sealed class ExaminableSolutionComponent: Component
|
||||
public sealed partial class ExaminableSolutionComponent: Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("solution")]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// Denotes a solution which can be added with syringes.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class InjectableSolutionComponent : Component
|
||||
public sealed partial class InjectableSolutionComponent : Component
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager;
|
||||
/// Fills a solution container randomly using a weighted random prototype
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(SolutionRandomFillSystem))]
|
||||
public sealed class RandomFillSolutionComponent : Component
|
||||
public sealed partial class RandomFillSolutionComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Solution name which to add reagents to.
|
||||
|
||||
@@ -5,10 +5,10 @@ namespace Content.Server.Chemistry.Components.SolutionManager
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Access(typeof(SolutionContainerSystem))]
|
||||
public sealed class SolutionContainerManagerComponent : Component
|
||||
public sealed partial class SolutionContainerManagerComponent : Component
|
||||
{
|
||||
[DataField("solutions")]
|
||||
[Access(typeof(SolutionContainerSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public readonly Dictionary<string, Solution> Solutions = new();
|
||||
public Dictionary<string, Solution> Solutions = new();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user