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

@@ -3,7 +3,7 @@ using Robust.Shared.GameStates;
namespace Content.Shared.Singularity.Components;
[RegisterComponent, NetworkedComponent]
public sealed class ContainmentFieldComponent : Component
public sealed partial class ContainmentFieldComponent : Component
{
/// <summary>
/// The throw force for the field if an entity collides with it

View File

@@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Shared.Singularity.Components;
[RegisterComponent, NetworkedComponent]
public sealed class ContainmentFieldGeneratorComponent : Component
public sealed partial class ContainmentFieldGeneratorComponent : Component
{
private int _powerBuffer;

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Singularity.Components;
/// </summary>
[Access(friends: typeof(SharedEventHorizonSystem))]
[RegisterComponent, NetworkedComponent]
public sealed class EventHorizonComponent : Component
public sealed partial class EventHorizonComponent : Component
{
/// <summary>
/// The radius of the event horizon within which it will destroy all entities and tiles.

View File

@@ -11,7 +11,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Shared.Singularity.Components;
[RegisterComponent, NetworkedComponent]
public sealed class EmitterComponent : Component
public sealed partial class EmitterComponent : Component
{
public CancellationTokenSource? TimerCancel;

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Singularity.Components;
/// Energy management is server-side.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed class SingularityComponent : Component
public sealed partial class SingularityComponent : Component
{
/// <summary>
/// The current level of the singularity.