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

@@ -3,7 +3,7 @@ using Content.Shared.Whitelist;
namespace Content.Server.Labels.Components
{
[RegisterComponent]
public sealed class HandLabelerComponent : Component
public sealed partial class HandLabelerComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("assignedLabel")]

View File

@@ -4,7 +4,7 @@ namespace Content.Server.Labels.Components
/// Makes entities have a label in their name. Labels are normally given by <see cref="HandLabelerComponent"/>
/// </summary>
[RegisterComponent]
public sealed class LabelComponent : Component
public sealed partial class LabelComponent : Component
{
/// <summary>
/// The actual text in the label

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Labels.Components
/// This component allows you to attach and remove a piece of paper to an entity.
/// </summary>
[RegisterComponent]
public sealed class PaperLabelComponent : Component
public sealed partial class PaperLabelComponent : Component
{
[DataField("labelSlot")]
public ItemSlot LabelSlot = new();