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

@@ -4,7 +4,7 @@ namespace Content.Client.Power.APC;
[RegisterComponent]
[Access(typeof(ApcVisualizerSystem))]
public sealed class ApcVisualsComponent : Component
public sealed partial class ApcVisualsComponent : Component
{
#region Indicators

View File

@@ -2,7 +2,7 @@
/// <seealso cref="TegSystem"/>
[RegisterComponent]
public sealed class TegCirculatorComponent : Component
public sealed partial class TegCirculatorComponent : Component
{
}

View File

@@ -1,7 +1,7 @@
namespace Content.Client.Power.SMES;
[RegisterComponent]
public sealed class SmesComponent : Component
public sealed partial class SmesComponent : Component
{
/// <summary>
/// The prefix used for the RSI states of the sprite layers indicating the charge level of the SMES.
@@ -9,7 +9,7 @@ public sealed class SmesComponent : Component
[DataField("chargeOverlayPrefix")]
[ViewVariables(VVAccess.ReadWrite)]
public string ChargeOverlayPrefix = "smes-og";
/// <summary>
/// The prefix used for the RSI states of the sprite layers indicating the input state of the SMES.
/// Actually bundled together with the output indicator light.
@@ -17,7 +17,7 @@ public sealed class SmesComponent : Component
[DataField("inputOverlayPrefix")]
[ViewVariables(VVAccess.ReadWrite)]
public string InputOverlayPrefix = "smes-oc";
/// <summary>
/// The prefix used for the RSI states of the sprite layers indicating the output state of the SMES.
/// Actually bundled together with the input indicator light.

View File

@@ -1,7 +1,7 @@
namespace Content.Client.Power.Visualizers;
[RegisterComponent]
public sealed class CableVisualizerComponent : Component
public sealed partial class CableVisualizerComponent : Component
{
[DataField("statePrefix")]
public string? StatePrefix;