Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -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