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

@@ -8,7 +8,7 @@ namespace Content.Server.Singularity.Components;
/// Primarily managed by <see cref="GravityWellSystem"/>.
/// </summary>
[RegisterComponent]
public sealed class GravityWellComponent : Component
public sealed partial class GravityWellComponent : Component
{
/// <summary>
/// The maximum range at which the gravity well can push/pull entities.

View File

@@ -7,7 +7,7 @@ namespace Content.Server.Singularity.Components
/// </summary>
[RegisterComponent]
[Access(typeof(RadiationCollectorSystem))]
public sealed class RadiationCollectorComponent : Component
public sealed partial class RadiationCollectorComponent : Component
{
/// <summary>
/// How much joules will collector generate for each rad.

View File

@@ -6,7 +6,7 @@ using Content.Server.Singularity.EntitySystems;
namespace Content.Server.Singularity.Components;
[RegisterComponent]
public sealed class SingularityGeneratorComponent : Component
public sealed partial class SingularityGeneratorComponent : Component
{
/// <summary>
/// The amount of power this generator has accumulated.

View File

@@ -4,7 +4,7 @@ namespace Content.Server.Singularity.Components
/// Overrides exactly how much energy this object gives to a singularity.
/// </summary>
[RegisterComponent]
public sealed class SinguloFoodComponent : Component
public sealed partial class SinguloFoodComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("energy")]