#---------- typescript ----------
-TS_SRCS= script bigfloat
+TS_SRCS= script
TS_SRC_FILES= \
webassembly-types/webassembly.d.ts \
templates/otter_wasm.ns.d.ts \
targets: PieceId[] | null,
}
+type ZCoord = string;
+
type PieceInfo = {
held : PlayerId | null,
cseq : number | null,
cseq_updatesvg : number | null,
- z : Bigfloat,
+ z : ZCoord,
zg : Generation,
pinned: boolean,
uos : UoDescription[],
svg: string,
held: PlayerId,
pos: Pos,
- z: Bigfloat,
+ z: ZCoord,
zg: Generation,
pinned: boolean,
uos: UoDescription[],
}
pieceops.SetZLevel = <PieceHandler>function
-(piece,p, info: { z: Bigfloat, zg: Generation }) {
+(piece,p, info: { z: ZCoord, zg: Generation }) {
piece_set_zlevel(piece,p, (oldtop_piece)=>{
let oldtop_p = pieces[oldtop_piece]!;
p.z = info.z;