chiark / gitweb /
JS: Add a comment about PieceInfo vs SessionPieceLoadJson
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 15:17:50 +0000 (16:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 15:17:50 +0000 (16:17 +0100)
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 <ijackson@chiark.greenend.org.uk>
templates/script.ts

index ab2f3e76ccf7fdac418da26fe1fd24b99fc7d646..ee920fcd2855f3f319ae850c62719d2d1fff61ca 100644 (file)
@@ -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,