3D biomes
This commit is contained in:
@@ -79,10 +79,10 @@ export interface EntityLevel {
|
||||
// the fluid there and how high it is, for fluids pushing things along
|
||||
fluid_at(x: number, y: number, z: number): FluidInCell | undefined;
|
||||
get_block_info(x: number, y: number, z: number): BlockRegistry | undefined;
|
||||
// the column's biome, like "bworld:plains"
|
||||
biome_at(x: number, z: number): string;
|
||||
// the biome at a block, like "bworld:plains"
|
||||
biome_at(x: number, y: number, z: number): string;
|
||||
// that biome's season now, see biome_season in common/worldgen/biomes.ts
|
||||
season_at(x: number, z: number): Season;
|
||||
season_at(x: number, y: number, z: number): Season;
|
||||
add_entity(entity: Entity): void;
|
||||
get_entity(id: string): Entity | undefined;
|
||||
// entities whose feet are within the box around x, y, z
|
||||
|
||||
@@ -116,12 +116,12 @@ export class EntityManager implements EntityLevel {
|
||||
return this.#host.world.get_block_info(x, y, z);
|
||||
}
|
||||
|
||||
biome_at(x: number, z: number) {
|
||||
return this.#host.world.biome_at(x, z);
|
||||
biome_at(x: number, y: number, z: number) {
|
||||
return this.#host.world.biome_at(x, y, z);
|
||||
}
|
||||
|
||||
season_at(x: number, z: number) {
|
||||
return biome_season(this.biome_at(x, z), this.#host.world.time);
|
||||
season_at(x: number, y: number, z: number) {
|
||||
return biome_season(this.biome_at(x, y, z), this.#host.world.time);
|
||||
}
|
||||
|
||||
fluid_at(x: number, y: number, z: number) {
|
||||
|
||||
Reference in New Issue
Block a user