feat: wire infinite chunk streaming into Game with loading screen

This commit is contained in:
2026-06-01 12:57:09 +02:00
parent 4467a7bd10
commit 59466fb291
4 changed files with 76 additions and 77 deletions

View File

@@ -23,6 +23,8 @@ public sealed class WorldGenerator
this._terrain = new TerrainSampler(noise, this._biomeMap);
}
public int SurfaceHeightAt(int worldX, int worldZ) => this._terrain.HeightAt(worldX, worldZ);
public VoxelChunk Generate(Vector3i chunkPos)
{
VoxelChunk chunk = new();