chiark / gitweb /
Prevent occultation by rotated pieces
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 7 Apr 2021 18:19:57 +0000 (19:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 7 Apr 2021 18:38:48 +0000 (19:38 +0100)
commit47ed629d26f9aa64ca2c8c780762bf04be2ef7a1
tree397879b71b60b5b7237462a59449243c51c56f9c
parentf91c37fe03ca99040e8a844986e6c8914d937590
Prevent occultation by rotated pieces

* Add a OcculterRotationChecked proof token to create_occultation
* Make a function to get the proof token from the GPiece
* In ui_operation (do the thing) functions, check it and plumb it through
* In the load functions, set rotateable to false

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/deck.rs
src/error.rs
src/hand.rs
src/hidden.rs