Shared state between client and server

This commit is contained in:
2026-10-03 18:45:07 -03:00
parent 63e6248f9f
commit 7417bfd5f1
24 changed files with 656 additions and 193 deletions
+7 -1
View File
@@ -9,7 +9,13 @@ export type HostToGame =
save: WorldSave;
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 }[];
mods: {
listing: ModListing;
data: ModData;
server_code?: string;
worldgen_code?: string;
shared_code?: string;
}[];
}
| { type: "connect"; conn: number }
| { type: "message"; conn: number; data: string }