Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace Content.Server.Guardian;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class CanHostGuardianComponent : Component
|
||||
public sealed partial class CanHostGuardianComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 { };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user