Send chunks to players connected to server
This commit is contained in:
@@ -22,7 +22,8 @@ export type HostToGame =
|
||||
export type GameToHost =
|
||||
| { type: "ready"; seed: string }
|
||||
| { type: "failed"; error: string }
|
||||
| { type: "send"; conn: number; data: string }
|
||||
// text is a json message, bytes a binary one
|
||||
| { type: "send"; conn: number; data: string | Uint8Array<ArrayBuffer> }
|
||||
| { type: "close"; conn: number }
|
||||
// level.json and the chunks that changed
|
||||
| { type: "save"; save: Required<WorldSave>; final: boolean }
|
||||
|
||||
Reference in New Issue
Block a user