Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
type PieceId = string;
type PlayerId = string;
type Pos = [number, number];
+type Rect = [Pos, Pos];
type ClientSeq = number;
type Generation = number;
type UoKind = 'Client' | "Global"| "Piece" | "ClientExtra" | "GlobalExtra";
queued_moves : number,
last_seen_moved : DOMHighResTimeStamp | null, // non-0 means halo'd
held_us_inoccult: boolean,
- bbox: [Pos, Pos],
+ bbox: Rect,
}
let wasm : InitOutput;
uos: UoDescription[],
moveable: PieceMoveable,
occregion: string | null,
- bbox: [Pos, Pos],
+ bbox: Rect,
}
pieceops.ModifyQuiet = <PieceHandler>function
type PreparedPieceImage = {
svg: string,
uos: UoDescription[],
- bbox: [Pos, Pos],
+ bbox: Rect,
}
type TransmitUpdateEntry_Image = {