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

@@ -7,7 +7,7 @@ namespace Content.Server.Anomaly.Components;
/// This is used for projectiles which affect anomalies through colliding with them.
/// </summary>
[RegisterComponent, Access(typeof(SharedAnomalySystem))]
public sealed class AnomalousParticleComponent : Component
public sealed partial class AnomalousParticleComponent : Component
{
/// <summary>
/// The type of particle that the projectile

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Anomaly.Components;
/// anomalies randomly on the station.
/// </summary>
[RegisterComponent, Access(typeof(SharedAnomalySystem))]
public sealed class AnomalyGeneratorComponent : Component
public sealed partial class AnomalyGeneratorComponent : Component
{
/// <summary>
/// The time at which the cooldown for generating another anomaly will be over

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Anomaly.Components;
/// displaying information about them in the ui
/// </summary>
[RegisterComponent, Access(typeof(SharedAnomalySystem))]
public sealed class AnomalyScannerComponent : Component
public sealed partial class AnomalyScannerComponent : Component
{
/// <summary>
/// The anomaly that was last scanned by this scanner.

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Anomaly.Components;
/// the anomaly's stability and severity.
/// </summary>
[RegisterComponent, Access(typeof(SharedAnomalySystem))]
public sealed class AnomalyVesselComponent : Component
public sealed partial class AnomalyVesselComponent : Component
{
/// <summary>
/// The anomaly that the vessel is storing.

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Audio;
namespace Content.Server.Anomaly.Components;
[RegisterComponent, Access(typeof(BluespaceAnomalySystem))]
public sealed class BluespaceAnomalyComponent : Component
public sealed partial class BluespaceAnomalyComponent : Component
{
/// <summary>
/// The maximum radius that the shuffle effect will extend for

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Anomaly.Components;
[RegisterComponent]
public sealed class ExplosionAnomalyComponent : Component
public sealed partial class ExplosionAnomalyComponent : Component
{
/// <summary>
/// The explosion prototype to spawn

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Anomaly.Components;
/// This component is used for handling gas producing anomalies. Will always spawn one on the tile with the anomaly, and in a random radius around it.
/// </summary>
[RegisterComponent]
public sealed class GasProducerAnomalyComponent : Component
public sealed partial class GasProducerAnomalyComponent : Component
{
/// <summary>
/// Should this gas be released when an anomaly reaches max severity?
@@ -45,11 +45,11 @@ public sealed class GasProducerAnomalyComponent : Component
public float spawnRadius = 3;
/// <summary>
/// The number of tiles which will be modified.
/// The number of tiles which will be modified.
/// </summary>
[DataField("tileCount")]
public int tileCount = 1;
/// <summary>
/// The the amount the tempurature should be modified by (negative for decreasing temp)
/// </summary>

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Server.Anomaly.Components;
[RegisterComponent, Access(typeof(SharedAnomalySystem))]
public sealed class GeneratingAnomalyGeneratorComponent : Component
public sealed partial class GeneratingAnomalyGeneratorComponent : Component
{
/// <summary>
/// When the generating period will end.

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Anomaly.Components;
[RegisterComponent]
public sealed class ProjectileAnomalyComponent : Component
public sealed partial class ProjectileAnomalyComponent : Component
{
/// <summary>
/// The prototype of the projectile that will be shot when the anomaly pulses

View File

@@ -4,7 +4,7 @@ namespace Content.Server.Anomaly.Components;
/// This component is used for handling anomalies that affect the temperature
/// </summary>
[RegisterComponent]
public sealed class TempAffectingAnomalyComponent : Component
public sealed partial class TempAffectingAnomalyComponent : Component
{
/// <summary>