Revert biome rework (#38724)

* Revert "Fix world generation (#38713)"

This reverts commit 10fa6ff4af.

* Revert "Biome rework (#37735)"

This reverts commit fe7b96147c.
This commit is contained in:
Pieter-Jan Briers
2025-07-03 20:48:04 +02:00
committed by GitHub
parent 047a49a505
commit e99fc501a6
116 changed files with 3541 additions and 3009 deletions

View File

@@ -1,24 +0,0 @@
using Robust.Shared.Noise;
namespace Content.Shared.Procedural.DungeonGenerators;
/// <summary>
/// Turns a chunked area into a dungeon for layer purposes. Assumes the position is the BL origin.
/// </summary>
public sealed partial class ChunkDunGen : IDunGenLayer
{
[DataField]
public int Size = 16;
/// <summary>
/// Noise to apply for each tile conditionally.
/// </summary>
[DataField]
public FastNoiseLite? Noise;
/// <summary>
/// Threshold for noise. Does nothing if <see cref="Noise"/> is null.
/// </summary>
[DataField]
public float Threshold = -1f;
}

View File

@@ -10,10 +10,4 @@ public sealed partial class ExteriorDunGen : IDunGenLayer
{
[DataField(required: true)]
public ProtoId<DungeonConfigPrototype> Proto;
/// <summary>
/// Minimum and maximum penetration.
/// </summary>
[DataField]
public Vector2i Penetration = new Vector2i(5, 15);
}

View File

@@ -14,12 +14,6 @@ public sealed partial class PrototypeDunGen : IDunGenLayer
[DataField]
public DungeonInheritance InheritDungeons = DungeonInheritance.None;
/// <summary>
/// Should we pass in the current level's reserved tiles to the prototype.
/// </summary>
[DataField]
public ReservedInheritance InheritReserved = ReservedInheritance.All;
[DataField(required: true)]
public ProtoId<DungeonConfigPrototype> Proto;
}
@@ -41,16 +35,3 @@ public enum DungeonInheritance : byte
/// </summary>
All,
}
public enum ReservedInheritance : byte
{
/// <summary>
/// Don't inherit any reserved tiles.
/// </summary>
None,
/// <summary>
/// Inherit reserved tiles,
/// </summary>
All,
}