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