Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
namespace Content.Shared.Tag
|
||||
{
|
||||
[RegisterComponent, Access(typeof(TagSystem))]
|
||||
public sealed class TagComponent : Component
|
||||
public sealed partial class TagComponent : Component
|
||||
{
|
||||
[DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<TagPrototype>))]
|
||||
[Access(typeof(TagSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public readonly HashSet<string> Tags = new();
|
||||
public HashSet<string> Tags = new();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,6 @@ namespace Content.Shared.Tag
|
||||
{
|
||||
[ViewVariables]
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
public string ID { get; private set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user