This commit is contained in:
Alistair Smith
2025-09-30 18:52:50 -07:00
parent fc9538baf1
commit 69a76d44f9
2 changed files with 3 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
import { td, te } from "../shared";
export class DataViewReader {
view: DataView;
view: DataView<ArrayBuffer>;
cursor: number;
constructor(view: DataView, cursor: number = 0) {
constructor(view: DataView<ArrayBuffer>, cursor: number = 0) {
this.view = view;
this.cursor = cursor;
}

View File

@@ -115,7 +115,7 @@ const handlers = {
ws.send("i" + config.generation);
}
},
[MessageId.hot_update](view) {
[MessageId.hot_update](view: DataView<ArrayBuffer>) {
const reader = new DataViewReader(view, 1);
// The code genearting each list is annotated with equivalent "List n"