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 @@ using Robust.Shared.Random;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[ImplicitDataDefinitionForInheritors]
public abstract class PlantAdjustAttribute : ReagentEffect
public abstract partial class PlantAdjustAttribute : ReagentEffect
{
[DataField("amount")] public float Amount { get; protected set; } = 1;
[DataField("prob")] public float Prob { get; protected set; } = 1; // = (80);

View File

@@ -3,7 +3,7 @@ using Content.Shared.Chemistry.Reagent;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
public sealed class PlantAdjustHealth : PlantAdjustAttribute
public sealed partial class PlantAdjustHealth : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -2,7 +2,7 @@
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
public sealed class PlantAdjustMutationLevel : PlantAdjustAttribute
public sealed partial class PlantAdjustMutationLevel : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -4,7 +4,7 @@ using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
public sealed class PlantAdjustMutationMod : PlantAdjustAttribute
public sealed partial class PlantAdjustMutationMod : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -5,7 +5,7 @@ using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
public sealed class PlantAdjustNutrition : PlantAdjustAttribute
public sealed partial class PlantAdjustNutrition : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -4,7 +4,7 @@ using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
public sealed class PlantAdjustPests : PlantAdjustAttribute
public sealed partial class PlantAdjustPests : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -4,7 +4,7 @@ using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
public sealed class PlantAdjustToxins : PlantAdjustAttribute
public sealed partial class PlantAdjustToxins : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -5,7 +5,7 @@ using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
public sealed class PlantAdjustWater : PlantAdjustAttribute
public sealed partial class PlantAdjustWater : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -4,7 +4,7 @@ using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
public sealed class PlantAdjustWeeds : PlantAdjustAttribute
public sealed partial class PlantAdjustWeeds : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -5,7 +5,7 @@ using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
public sealed class PlantAffectGrowth : PlantAdjustAttribute
public sealed partial class PlantAffectGrowth : PlantAdjustAttribute
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
[DataDefinition]
public sealed class PlantCryoxadone : ReagentEffect
public sealed partial class PlantCryoxadone : ReagentEffect
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
[DataDefinition]
public sealed class PlantDiethylamine : ReagentEffect
public sealed partial class PlantDiethylamine : ReagentEffect
{
public override void Effect(ReagentEffectArgs args)
{

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
{
[UsedImplicitly]
[DataDefinition]
public sealed class RobustHarvest : ReagentEffect
public sealed partial class RobustHarvest : ReagentEffect
{
[DataField("potencyLimit")]
public int PotencyLimit = 50;