Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Content.Server.Singularity.Components;
|
||||
/// Primarily managed by <see cref="GravityWellSystem"/>.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class GravityWellComponent : Component
|
||||
public sealed partial class GravityWellComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The maximum range at which the gravity well can push/pull entities.
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Singularity.Components
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(RadiationCollectorSystem))]
|
||||
public sealed class RadiationCollectorComponent : Component
|
||||
public sealed partial class RadiationCollectorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// How much joules will collector generate for each rad.
|
||||
|
||||
@@ -6,7 +6,7 @@ using Content.Server.Singularity.EntitySystems;
|
||||
namespace Content.Server.Singularity.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class SingularityGeneratorComponent : Component
|
||||
public sealed partial class SingularityGeneratorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The amount of power this generator has accumulated.
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Content.Server.Singularity.Components
|
||||
/// Overrides exactly how much energy this object gives to a singularity.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class SinguloFoodComponent : Component
|
||||
public sealed partial class SinguloFoodComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("energy")]
|
||||
|
||||
Reference in New Issue
Block a user