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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user