3D biomes
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// server/worldgen_workers.ts). requests go nearest first, a worker has a couple at a time so priorities stay fresh, and what the
|
||||
// game stops wanting is dropped before it starts
|
||||
import type { RawChunk } from "@/common/generation.ts";
|
||||
import { ChunkColumn, Section, type SectionData } from "@/common/section.ts";
|
||||
import { ChunkColumn, type ColumnBiomes, Section, type SectionData } from "@/common/section.ts";
|
||||
import { WorldShape } from "@/common/world_shape.ts";
|
||||
import type { WorldgenBundle } from "@/common/worldgen_bundle.ts";
|
||||
import { chunk_key } from "@/common/utils.ts";
|
||||
@@ -19,7 +19,7 @@ export type WorkerToPool =
|
||||
| { type: "ready" }
|
||||
| { type: "failed"; error: string }
|
||||
// a raw chunk's sections as their data, since what's sent between workers loses its class
|
||||
| { type: "chunk"; x: number; z: number; sections: SectionData[]; spills: Int32Array; biomes: string[] }
|
||||
| { type: "chunk"; x: number; z: number; sections: SectionData[]; spills: Int32Array; biomes: ColumnBiomes }
|
||||
| { type: "error"; x: number; z: number; error: string };
|
||||
|
||||
// the game's end of a channel to a worker
|
||||
|
||||
Reference in New Issue
Block a user