Single module modding

This commit is contained in:
2026-11-14 12:18:41 -03:00
parent 605008f584
commit 313098892e
134 changed files with 919 additions and 924 deletions
+2 -8
View File
@@ -19,14 +19,8 @@ export type HostToGame =
// level.json, and where the saved chunks are. the game reads them with read_chunk when it needs them
save: { level?: string; chunks: [number, number][] };
default_seed: string;
// in load order, with the scripts' code since the worker can't read files
mods: {
listing: ModListing;
data: ModData;
server_code?: string;
worldgen_code?: string;
shared_code?: string;
}[];
// in load order, with their script's code since the worker can't read files
mods: { listing: ModListing; data: ModData; code?: string }[];
// the game's ends of channels to the worldgen workers the host started, see worldgen_pool.ts. none means
// generating on the game's thread
worldgen_ports: MessagePort[];