Revert biome rework (#38724)
* Revert "Fix world generation (#38713)" This reverts commit10fa6ff4af. * Revert "Biome rework (#37735)" This reverts commitfe7b96147c.
This commit is contained in:
committed by
GitHub
parent
047a49a505
commit
e99fc501a6
27
Content.Shared/Parallax/Biomes/Layers/BiomeMetaLayer.cs
Normal file
27
Content.Shared/Parallax/Biomes/Layers/BiomeMetaLayer.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user