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