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

@@ -10,7 +10,7 @@ namespace Content.Server.ParticleAccelerator.Components;
/// Also contains primary logic for actual PA behavior, part scanning, etc...
/// </summary>
[RegisterComponent]
public sealed class ParticleAcceleratorControlBoxComponent : Component
public sealed partial class ParticleAcceleratorControlBoxComponent : Component
{
/// <summary>
/// Whether the PA parts have been correctly arranged to make a functional device.

View File

@@ -3,7 +3,7 @@
namespace Content.Server.ParticleAccelerator.Components;
[RegisterComponent]
public sealed class ParticleAcceleratorEmitterComponent : Component
public sealed partial class ParticleAcceleratorEmitterComponent : Component
{
[DataField("emittedPrototype")]
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -1,6 +1,6 @@
namespace Content.Server.ParticleAccelerator.Components;
[RegisterComponent]
public sealed class ParticleAcceleratorEndCapComponent : Component
public sealed partial class ParticleAcceleratorEndCapComponent : Component
{
}

View File

@@ -1,6 +1,6 @@
namespace Content.Server.ParticleAccelerator.Components;
[RegisterComponent]
public sealed class ParticleAcceleratorFuelChamberComponent : Component
public sealed partial class ParticleAcceleratorFuelChamberComponent : Component
{
}

View File

@@ -1,7 +1,7 @@
namespace Content.Server.ParticleAccelerator.Components;
[RegisterComponent]
public sealed class ParticleAcceleratorPartComponent : Component
public sealed partial class ParticleAcceleratorPartComponent : Component
{
[ViewVariables]
public EntityUid? Master;

View File

@@ -1,6 +1,6 @@
namespace Content.Server.ParticleAccelerator.Components;
[RegisterComponent]
public sealed class ParticleAcceleratorPowerBoxComponent : Component
public sealed partial class ParticleAcceleratorPowerBoxComponent : Component
{
}

View File

@@ -3,7 +3,7 @@ using Content.Shared.Singularity.Components;
namespace Content.Server.ParticleAccelerator.Components;
[RegisterComponent]
public sealed class ParticleProjectileComponent : Component
public sealed partial class ParticleProjectileComponent : Component
{
public ParticleAcceleratorPowerState State;
}

View File

@@ -5,7 +5,7 @@ using Content.Shared.Wires;
namespace Content.Server.ParticleAccelerator.Wires;
public sealed class ParticleAcceleratorKeyboardWireAction : ComponentWireAction<ParticleAcceleratorControlBoxComponent>
public sealed partial class ParticleAcceleratorKeyboardWireAction : ComponentWireAction<ParticleAcceleratorControlBoxComponent>
{
public override string Name { get; set; } = "wire-name-pa-keyboard";
public override Color Color { get; set; } = Color.LimeGreen;

View File

@@ -9,7 +9,7 @@ using Robust.Server.GameObjects;
namespace Content.Server.ParticleAccelerator.Wires;
public sealed class ParticleAcceleratorLimiterWireAction : ComponentWireAction<ParticleAcceleratorControlBoxComponent>
public sealed partial class ParticleAcceleratorLimiterWireAction : ComponentWireAction<ParticleAcceleratorControlBoxComponent>
{
public override string Name { get; set; } = "wire-name-pa-limiter";
public override Color Color { get; set; } = Color.Teal;

View File

@@ -8,7 +8,7 @@ using Robust.Shared.Random;
namespace Content.Server.ParticleAccelerator.Wires;
public sealed class ParticleAcceleratorStrengthWireAction : ComponentWireAction<ParticleAcceleratorControlBoxComponent>
public sealed partial class ParticleAcceleratorStrengthWireAction : ComponentWireAction<ParticleAcceleratorControlBoxComponent>
{
public override string Name { get; set; } = "wire-name-pa-strength";
public override Color Color { get; set; } = Color.Blue;

View File

@@ -7,7 +7,7 @@ using Robust.Server.GameObjects;
namespace Content.Server.ParticleAccelerator.Wires;
public sealed class ParticleAcceleratorPowerWireAction : ComponentWireAction<ParticleAcceleratorControlBoxComponent>
public sealed partial class ParticleAcceleratorPowerWireAction : ComponentWireAction<ParticleAcceleratorControlBoxComponent>
{
public override string Name { get; set; } = "wire-name-pa-power";
public override Color Color { get; set; } = Color.Yellow;