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