Shared state between client and server
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user