using Robust.Shared.Noise; using Robust.Shared.Serialization; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Shared.Parallax.Biomes.Layers; /// /// Contains more biome layers recursively via a biome template. /// Can be used for sub-biomes. /// [Serializable, NetSerializable] public sealed partial class BiomeMetaLayer : IBiomeLayer { [DataField("noise")] public FastNoiseLite Noise { get; private set; } = new(0); /// [DataField("threshold")] public float Threshold { get; private set; } = -1f; /// [DataField("invert")] public bool Invert { get; private set; } [DataField("template", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string Template = string.Empty; }