chiark / gitweb /
hidden prep: Reorganise PieceUpdateFromOp
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 12:11:33 +0000 (12:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 Jan 2021 18:38:28 +0000 (18:38 +0000)
commit6332302f49a8e4acffb55bf65ec6947da373774c
treee48b8c705b432e537f43d0fea3df376d27739cf1
parentc4c448b74d71bb60c20af940d76e8c4de1d6e52f
hidden prep: Reorganise PieceUpdateFromOp

We are going to want to allow an op to give different answers to
different clients.  The representation from an op is going to be
either basically what we have now, or a version where the
PieceUpdateOp is different for each player.

Prepare for this with some struct and type shuffling.  We laave a
convenience Into impl to allow ops to easily handle the simple case.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/api.rs
daemon/cmdlistener.rs
src/global.rs
src/imports.rs
src/updates.rs