Region file format
This commit is contained in:
+2
-1
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user