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,6 +1,6 @@
|
||||
using Content.Server.Worldgen.Systems.Biomes;
|
||||
using Content.Server.Worldgen.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
using Content.Server.Worldgen.Prototypes;
|
||||
using Content.Server.Worldgen.Systems.Biomes;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Worldgen.Components;
|
||||
|
||||
@@ -15,7 +15,7 @@ public sealed partial class BiomeSelectionComponent : Component
|
||||
/// The list of biomes available to this selector.
|
||||
/// </summary>
|
||||
/// <remarks>This is always sorted by priority after ComponentStartup.</remarks>
|
||||
[DataField("biomes", required: true,
|
||||
customTypeSerializer: typeof(PrototypeIdListSerializer<BiomePrototype>))] public List<string> Biomes = new();
|
||||
[DataField(required: true)]
|
||||
public List<ProtoId<BiomePrototype>> Biomes = new();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user