feat(client-chunk): add greedy meshing, receive_chunk, and biome field

This commit is contained in:
2026-06-25 14:31:11 +08:00
parent c92e2249a4
commit df2e26e731
5 changed files with 565 additions and 5 deletions

View File

@@ -437,6 +437,7 @@ void ServerWorld::handle_chunk_req(const std::string& uuid, ChunkPos pos) {
return;
}
rsq.set_chunk_seed(it->second.seed());
rsq.set_biome_type(std::to_underlying(it->second.biome()));
auto* blocks = rsq.mutable_chunk_blocks();
auto& chunk_blocks = it->second.get_chunk_blocks();
blocks->Assign(chunk_blocks.begin(), chunk_blocks.end());