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

@@ -5,7 +5,7 @@ namespace Content.Server.Nuke
/// Can be used in mapping or admins spawn.
/// </summary>
[RegisterComponent]
public sealed class NukeCodePaperComponent : Component
public sealed partial class NukeCodePaperComponent : Component
{
/// <summary>
/// Whether or not paper will contain a code for a nuke on the same

View File

@@ -16,7 +16,7 @@ namespace Content.Server.Nuke
/// </summary>
[RegisterComponent]
[Access(typeof(NukeSystem))]
public sealed class NukeComponent : SharedNukeComponent
public sealed partial class NukeComponent : SharedNukeComponent
{
/// <summary>
/// Default bomb timer value in seconds.

View File

@@ -7,7 +7,7 @@ namespace Content.Server.Nuke;
/// This is a separate component because the fake nuclear bomb keg exists.
/// </remarks>
[RegisterComponent]
public sealed class NukeLabelComponent : Component
public sealed partial class NukeLabelComponent : Component
{
[DataField("prefix")] public string NukeLabel = "nuke-label-nanotrasen";
[DataField("serialLength")] public int SerialLength = 6;