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
@@ -1,5 +1,6 @@
import { assert, assertEquals } from "@std/assert";
import { copy_dir, test_game } from "./helpers.ts";
import type { WorldSave } from "$/server/game/saves.ts";
// a mod that uses every part of the server api worth testing, and writes down what happened in its storage
const SERVER_SCRIPT = `
@@ -151,7 +152,7 @@ function test_mods() {
return dir;
}
async function setup(save?: string) {
async function setup(save?: WorldSave) {
const dir = test_mods();
const game = await test_game(dir, save);
game.join(1, "alice");