Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user