Workers for chunk generation !
This commit is contained in:
@@ -16,7 +16,12 @@ export type HostToGame =
|
||||
worldgen_code?: string;
|
||||
shared_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[];
|
||||
}
|
||||
// a worldgen worker crashed and the host started it again, this is the new one's port
|
||||
| { type: "worldgen_port"; index: number; port: MessagePort }
|
||||
| { type: "connect"; conn: number }
|
||||
| { type: "message"; conn: number; data: string }
|
||||
| { type: "disconnect"; conn: number }
|
||||
|
||||
Reference in New Issue
Block a user