Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -4,12 +4,12 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
namespace Content.Server.Access.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
public sealed class AgentIDCardComponent : Component
|
||||
public sealed partial class AgentIDCardComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Set of job icons that the agent ID card can show.
|
||||
/// </summary>
|
||||
[DataField("icons", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<StatusIconPrototype>))]
|
||||
public readonly HashSet<string> Icons = new();
|
||||
public HashSet<string> Icons = new();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user