World gen stuff

This commit is contained in:
2026-11-13 00:01:59 -03:00
parent e013fbe550
commit e8ca9753f5
25 changed files with 645 additions and 162 deletions
+1 -3
View File
@@ -12,15 +12,13 @@ import { pack_mod } from "@/tools/pack_mod.ts";
import { create_mod } from "@/tools/new_mod.ts";
import { load_mods } from "@/server/load_mods.ts";
import { start_host } from "@/server/host.ts";
import { copy_dir } from "./helpers.ts";
import { copy_dir, ENGINE_TEXTURES } from "./helpers.ts";
import { PROTOCOL_VERSION } from "@/common/protocol.ts";
import { decode_level_chunk, type LevelChunk } from "@/common/chunk_streaming.ts";
import { decode_chunk, encode_chunk } from "@/server/game/saves.ts";
import { list_chunks, read_chunk, write_chunks } from "@/server/regions.ts";
import { section_index } from "@/common/section.ts";
const ENGINE_TEXTURES = ["cubi:missing", ...Array.from({ length: 9 }, (_, i) => `cubi:break_${i}`)];
// mods/bworld and one made from the template, packed into a folder of .cubi files
async function packed_mods() {
const sources = Deno.makeTempDirSync({ prefix: "bworld_mod_src_" });