chiark / gitweb /
hidden: Use new PieceRenderInstructions and svg massage APIs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 Jan 2021 21:51:03 +0000 (21:51 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 Jan 2021 22:22:38 +0000 (22:22 +0000)
commit17628683657e2f48b9b1f70d28a02612038b44cf
treeeb5a4022b1bb2d4c57ad07469f35606624f8eb87
parent11a88b9e701871cc801c3099e5ab3f9517277def
hidden: Use new PieceRenderInstructions and svg massage APIs

In general terms:
 * When we need a PieceRenderInstructions get it from piece_pri
   (including from gs.occults) rather than from a Lens.
 * Delete the methods from Lens (and the dummy make_pieceid_visible
   function) so we are sure they aren't used.
 * Use the new massage_prep_piecestate function rather than the
   method on Lens.
 * Consequential changes, including providing mutable gpl in one
   placea, and adding/removing _ prefixes for expectedly used/unsued
   variables.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/api.rs
daemon/session.rs
src/gamestate.rs
src/lens.rs
src/updates.rs