Refactor serialization copying to use source generators (#19412)

This commit is contained in:
DrSmugleaf
2023-08-22 18:14:33 -07:00
committed by GitHub
parent 08b43990ab
commit a88e747a0b
1737 changed files with 2532 additions and 2521 deletions

View File

@@ -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.

View File

@@ -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")]

View File

@@ -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>

View File

@@ -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.

View File

@@ -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();
}
}