Region file format

This commit is contained in:
2026-09-27 23:45:07 -03:00
parent a6869eeb59
commit 677ad8115a
18 changed files with 666 additions and 567 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import type { ServerModSource } from "$/server/game/load_mods.ts";
import { GameServer } from "$/server/game/game_server.ts";
import { start_game } from "$/server/game/load_mods.ts";
import { PROTOCOL_VERSION } from "$/common/protocol.ts";
import type { WorldSave } from "$/server/game/saves.ts";
// mods straight from their source folders, skipping the build: scripts are imported as typescript
export function mod_sources(mods_dir: string): ServerModSource[] {
@@ -37,7 +38,7 @@ export function mod_sources(mods_dir: string): ServerModSource[] {
}
// a game with an in memory host that remembers what it sent to each connection
export async function test_game(mods_dir: string, save?: string, seed = "test-seed") {
export async function test_game(mods_dir: string, save?: WorldSave, seed = "test-seed") {
EverythingRegistry.clear();
const outbox = new Map<number, unknown[]>();
const closed = new Set<number>();