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:
@@ -2,7 +2,6 @@ using Content.Shared.Maps;
|
||||
using Robust.Shared.Noise;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
|
||||
namespace Content.Shared.Parallax.Biomes.Layers;
|
||||
|
||||
@@ -10,8 +9,8 @@ namespace Content.Shared.Parallax.Biomes.Layers;
|
||||
public sealed partial class BiomeEntityLayer : IBiomeWorldLayer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
[DataField("allowedTiles", customTypeSerializer:typeof(PrototypeIdListSerializer<ContentTileDefinition>))]
|
||||
public List<string> AllowedTiles { get; private set; } = new();
|
||||
[DataField]
|
||||
public List<ProtoId<ContentTileDefinition>> AllowedTiles { get; private set; } = new();
|
||||
|
||||
[DataField("noise")] public FastNoiseLite Noise { get; private set; } = new(0);
|
||||
|
||||
@@ -22,6 +21,6 @@ public sealed partial class BiomeEntityLayer : IBiomeWorldLayer
|
||||
/// <inheritdoc/>
|
||||
[DataField("invert")] public bool Invert { get; private set; } = false;
|
||||
|
||||
[DataField("entities", required: true, customTypeSerializer: typeof(PrototypeIdListSerializer<EntityPrototype>))]
|
||||
public List<string> Entities = new();
|
||||
[DataField(required: true)]
|
||||
public List<EntProtoId> Entities = new();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user