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
+1
View File
@@ -85,6 +85,7 @@ async function init(message: Extract<HostToGame, { type: "init" }>) {
// the worker has no file access, so the host sends the code and it's imported from memory
server_url: mod.server_code ? data_url(mod.server_code) : undefined,
worldgen_url: mod.worldgen_code ? data_url(mod.worldgen_code) : undefined,
shared_url: mod.shared_code ? data_url(mod.shared_code) : undefined,
})),
);
} catch (e) {