From f6e208965d01d0544648f9572d814ddc955d2668 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 18 Apr 2022 16:17:50 +0100 Subject: [PATCH] JS: Add a comment about PieceInfo vs SessionPieceLoadJson I made a bug due to not realising this needed to be updated too. Maybe at some point the common bits should be combined, at least on the Rust side. Signed-off-by: Ian Jackson --- templates/script.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/script.ts b/templates/script.ts index ab2f3e76..ee920fcd 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -67,6 +67,8 @@ type UoRecord = UoDescription & { type ZCoord = string; +// On load, starts from SessionPieceLoadJson (Rust-only) +// On update, updated field-by-field from PreparedPieceState (Rust&JS) type PieceInfo = { held : PlayerId | null, cseq_main : number | null, -- 2.30.2