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

@@ -6,7 +6,7 @@ namespace Content.Server.DeviceNetwork.Components
[RegisterComponent]
[Access(typeof(ApcNetworkSystem))]
[ComponentProtoName("ApcNetworkConnection")]
public sealed class ApcNetworkComponent : Component
public sealed partial class ApcNetworkComponent : Component
{
/// <summary>
/// The node Group the ApcNetworkConnection is connected to

View File

@@ -6,7 +6,7 @@ namespace Content.Server.DeviceNetwork.Components
{
[RegisterComponent]
[Access(typeof(DeviceNetworkSystem), typeof(DeviceNet))]
public sealed class DeviceNetworkComponent : Component
public sealed partial class DeviceNetworkComponent : Component
{
public enum DeviceNetIdDefaults
{

View File

@@ -6,6 +6,6 @@ namespace Content.Server.DeviceNetwork.Components;
/// if the entity is not powered.
/// </summary>
[RegisterComponent]
public sealed class DeviceNetworkRequiresPowerComponent : Component
public sealed partial class DeviceNetworkRequiresPowerComponent : Component
{
}

View File

@@ -4,7 +4,7 @@ namespace Content.Server.DeviceNetwork.Components.Devices
{
[RegisterComponent]
[Access(typeof(ApcNetSwitchSystem))]
public sealed class ApcNetSwitchComponent : Component
public sealed partial class ApcNetSwitchComponent : Component
{
[ViewVariables] public bool State;
}

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Map;
namespace Content.Server.DeviceNetwork.Components
{
[RegisterComponent]
public sealed class StationLimitedNetworkComponent : Component
public sealed partial class StationLimitedNetworkComponent : Component
{
/// <summary>
/// The station id the device is limited to.

View File

@@ -2,7 +2,7 @@ namespace Content.Server.DeviceNetwork.Components
{
[RegisterComponent]
[ComponentProtoName("WiredNetworkConnection")]
public sealed class WiredNetworkComponent : Component
public sealed partial class WiredNetworkComponent : Component
{
}
}

View File

@@ -5,7 +5,7 @@ namespace Content.Server.DeviceNetwork.Components
/// </summary>
[RegisterComponent]
[ComponentProtoName("WirelessNetworkConnection")]
public sealed class WirelessNetworkComponent : Component
public sealed partial class WirelessNetworkComponent : Component
{
[DataField("range")]
public int Range { get; set; }