Player skins !
This commit is contained in:
@@ -14,11 +14,15 @@ export type HostToGame =
|
||||
| { type: "message"; conn: number; data: string }
|
||||
| { type: "disconnect"; conn: number }
|
||||
// save now and say when it's done, for shutting down
|
||||
| { type: "shutdown" };
|
||||
| { type: "shutdown" }
|
||||
// answers download, with the bytes or why it failed
|
||||
| { type: "downloaded"; id: number; bytes?: Uint8Array; error?: string };
|
||||
|
||||
export type GameToHost =
|
||||
| { type: "ready"; seed: string }
|
||||
| { type: "failed"; error: string }
|
||||
| { type: "send"; conn: number; data: string }
|
||||
| { type: "close"; conn: number }
|
||||
| { type: "save"; data: string; final: boolean };
|
||||
| { type: "save"; data: string; final: boolean }
|
||||
// the worker can't use the network, so the host fetches urls for it, like skins
|
||||
| { type: "download"; id: number; url: string; max_bytes: number };
|
||||
|
||||
Reference in New Issue
Block a user