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

@@ -7,7 +7,7 @@ namespace Content.Shared.Shuttles.Components;
/// Handles what a grid should look like on radar.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedShuttleSystem))]
public sealed class IFFComponent : Component
public sealed partial class IFFComponent : Component
{
/// <summary>
/// Should we show IFF by default?

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Shuttles.Components
/// </summary>
[RegisterComponent]
[NetworkedComponent]
public sealed class PilotComponent : Component
public sealed partial class PilotComponent : Component
{
[ViewVariables]
public EntityUid? Console { get; set; }

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Shuttles.Components;
/// Add to grids that you do not want manually piloted under any circumstances.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed class PreventPilotComponent : Component
public sealed partial class PreventPilotComponent : Component
{
}

View File

@@ -4,7 +4,7 @@ using Robust.Shared.GameStates;
namespace Content.Shared.Shuttles.Components;
[RegisterComponent, NetworkedComponent, Access(typeof(SharedRadarConsoleSystem))]
public sealed class RadarConsoleComponent : Component
public sealed partial class RadarConsoleComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public float RangeVV

View File

@@ -1,6 +1,6 @@
namespace Content.Shared.Shuttles.Components
{
public abstract class SharedDockingComponent : Component
public abstract partial class SharedDockingComponent : Component
{
// Yes I left this in for now because there's no overhead and we'll need a client one later anyway
// and I was too lazy to delete it.

View File

@@ -7,7 +7,7 @@ namespace Content.Shared.Shuttles.Components
/// Interact with to start piloting a shuttle.
/// </summary>
[NetworkedComponent]
public abstract class SharedShuttleConsoleComponent : Component
public abstract partial class SharedShuttleConsoleComponent : Component
{
}