Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace Content.Server.ParticleAccelerator.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class ParticleAcceleratorEndCapComponent : Component
|
||||
public sealed partial class ParticleAcceleratorEndCapComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace Content.Server.ParticleAccelerator.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class ParticleAcceleratorFuelChamberComponent : Component
|
||||
public sealed partial class ParticleAcceleratorFuelChamberComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace Content.Server.ParticleAccelerator.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class ParticleAcceleratorPowerBoxComponent : Component
|
||||
public sealed partial class ParticleAcceleratorPowerBoxComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user