feat(world-gen): integrate CaveCarver into WorldGenerator.Generate

This commit is contained in:
2026-06-01 15:43:32 +02:00
parent 645fd00868
commit 9410fee78b
4 changed files with 39 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ public sealed class Game : GameWindow
this._world = new World.World(this._registry, this._modStore);
int seed = this._cfg.Seed ?? new Random().Next();
this._generator = new WorldGenerator(seed, this._registry);
this._generator = new WorldGenerator(seed, this._registry, this._cfg);
// Spawn at terrain surface above (0, 0).
int surfaceY = this._generator.SurfaceHeightAt(0, 0);