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

@@ -1,6 +1,6 @@
namespace Content.Server.Guardian;
[RegisterComponent]
public sealed class CanHostGuardianComponent : Component
public sealed partial class CanHostGuardianComponent : Component
{
}

View File

@@ -4,7 +4,7 @@ namespace Content.Server.Guardian
/// Given to guardians to monitor their link with the host
/// </summary>
[RegisterComponent]
public sealed class GuardianComponent : Component
public sealed partial class GuardianComponent : Component
{
/// <summary>
/// The guardian host entity

View File

@@ -7,7 +7,7 @@ namespace Content.Server.Guardian
/// Creates a GuardianComponent attached to the user's GuardianHost.
/// </summary>
[RegisterComponent]
public sealed class GuardianCreatorComponent : Component
public sealed partial class GuardianCreatorComponent : Component
{
/// <summary>
/// Counts as spent upon exhausting the injection

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Guardian
/// Given to guardian users upon establishing a guardian link with the entity
/// </summary>
[RegisterComponent]
public sealed class GuardianHostComponent : Component
public sealed partial class GuardianHostComponent : Component
{
/// <summary>
/// Guardian hosted within the component
@@ -36,5 +36,5 @@ namespace Content.Server.Guardian
};
}
public sealed class GuardianToggleActionEvent : InstantActionEvent { };
public sealed partial class GuardianToggleActionEvent : InstantActionEvent { };
}