Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -10,8 +10,8 @@ namespace Content.Server.Radio.Components;
|
||||
/// radio headset).
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class IntrinsicRadioTransmitterComponent : Component
|
||||
public sealed partial class IntrinsicRadioTransmitterComponent : Component
|
||||
{
|
||||
[DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<RadioChannelPrototype>))]
|
||||
public readonly HashSet<string> Channels = new() { SharedChatSystem.CommonChannel };
|
||||
public HashSet<string> Channels = new() { SharedChatSystem.CommonChannel };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user