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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
namespace Content.Server.Access.Components;
|
||||
|
||||
[RegisterComponent, Access(typeof(IdExaminableSystem))]
|
||||
public sealed class IdExaminableComponent : Component
|
||||
public sealed partial class IdExaminableComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace Content.Server.Access.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
public sealed class PresetIdCardComponent : Component
|
||||
public sealed partial class PresetIdCardComponent : Component
|
||||
{
|
||||
[DataField("job")]
|
||||
public readonly string? JobName;
|
||||
public string? JobName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user