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