Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out (#37959)
* Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out * Missed one * Missed another * Fix data field ids
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using Content.Shared.DeviceNetwork;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.SurveillanceCamera;
|
||||
|
||||
@@ -43,6 +43,6 @@ public sealed partial class SurveillanceCameraComponent : Component
|
||||
public bool NetworkSet { get; set; }
|
||||
|
||||
// This has to be device network frequency prototypes.
|
||||
[DataField("setupAvailableNetworks", customTypeSerializer:typeof(PrototypeIdListSerializer<DeviceFrequencyPrototype>))]
|
||||
public List<string> AvailableNetworks { get; private set; } = new();
|
||||
[DataField("setupAvailableNetworks")]
|
||||
public List<ProtoId<DeviceFrequencyPrototype>> AvailableNetworks { get; private set; } = new();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user