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
@@ -117,6 +117,7 @@ export async function start_host(options: HostOptions): Promise<Host> {
data: bmod.data,
server_code: bmod.scripts.server,
worldgen_code: bmod.scripts.worldgen,
shared_code: bmod.scripts.shared,
})),
} satisfies HostToGame,
save.chunks.map((chunk) => chunk.data.buffer),