chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1377306
)
JS: Add a comment about PieceInfo vs SessionPieceLoadJson
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 15:17:50 +0000
(16:17 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index ab2f3e76ccf7fdac418da26fe1fd24b99fc7d646..ee920fcd2855f3f319ae850c62719d2d1fff61ca 100644
(file)
--- 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,