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