* Revert "Fix world generation (#38713)" This reverts commit10fa6ff4af. * Revert "Biome rework (#37735)" This reverts commitfe7b96147c.
28 lines
871 B
C#
28 lines
871 B
C#
using Robust.Shared.Noise;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.Parallax.Biomes.Layers;
|
|
|
|
/// <summary>
|
|
/// Contains more biome layers recursively via a biome template.
|
|
/// Can be used for sub-biomes.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed partial class BiomeMetaLayer : IBiomeLayer
|
|
{
|
|
[DataField("noise")]
|
|
public FastNoiseLite Noise { get; private set; } = new(0);
|
|
|
|
/// <inheritdoc/>
|
|
[DataField("threshold")]
|
|
public float Threshold { get; private set; } = -1f;
|
|
|
|
/// <inheritdoc/>
|
|
[DataField("invert")]
|
|
public bool Invert { get; private set; }
|
|
|
|
[DataField("template", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<BiomeTemplatePrototype>))]
|
|
public string Template = string.Empty;
|
|
}
|