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 @@ using Robust.Shared.Audio;
namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
public sealed class GasCanisterComponent : Component, IGasMixtureHolder
public sealed partial class GasCanisterComponent : Component, IGasMixtureHolder
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("port")]

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
[Access(typeof(GasOutletInjectorSystem))]
public sealed class GasOutletInjectorComponent : Component
public sealed partial class GasOutletInjectorComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -1,7 +1,7 @@
namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
public sealed class GasPassiveVentComponent : Component
public sealed partial class GasPassiveVentComponent : Component
{
[DataField("inlet")]
public string InletName = "pipe";

View File

@@ -1,7 +1,7 @@
namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
public sealed class GasPortableComponent : Component
public sealed partial class GasPortableComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("port")]

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
public sealed class GasThermoMachineComponent : Component
public sealed partial class GasThermoMachineComponent : Component
{
[DataField("inlet")]
public string InletName = "pipe";

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
public sealed class GasVentPumpComponent : Component
public sealed partial class GasVentPumpComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public bool Enabled { get; set; } = true;
@@ -122,7 +122,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components
/// Whether or not machine linking is enabled for this component.
/// </summary>
[DataField("canLink")]
public readonly bool CanLink = false;
public bool CanLink = false;
[DataField("pressurizePort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
public string PressurizePort = "Pressurize";

View File

@@ -7,7 +7,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
[Access(typeof(GasVentScrubberSystem))]
public sealed class GasVentScrubberComponent : Component
public sealed partial class GasVentScrubberComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public bool Enabled { get; set; } = true;