Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Content.Shared.Clothing.Components;
|
||||
/// </summary>
|
||||
[Access(typeof(ToggleableClothingSystem))]
|
||||
[RegisterComponent]
|
||||
public sealed class ToggleableClothingComponent : Component
|
||||
public sealed partial class ToggleableClothingComponent : Component
|
||||
{
|
||||
public const string DefaultClothingContainerId = "toggleable-clothing";
|
||||
|
||||
@@ -28,7 +28,7 @@ public sealed class ToggleableClothingComponent : Component
|
||||
/// Default clothing entity prototype to spawn into the clothing container.
|
||||
/// </summary>
|
||||
[DataField("clothingPrototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public readonly string ClothingPrototype = default!;
|
||||
public string ClothingPrototype = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The inventory slot that the clothing is equipped to.
|
||||
|
||||
Reference in New Issue
Block a user