chiark / gitweb /
Move special rendering instructions to PieceSpecialProperties
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 10:20:12 +0000 (11:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 12:18:05 +0000 (13:18 +0100)
commit6b975afddf5baa83d882b44bfa0a5560fce8d85b
tree15ce8b17793245ddf32c1128c7bf2a15a41aaa25
parent03a7e153c8976ce74b32012a6de013f4029639f5
Move special rendering instructions to PieceSpecialProperties

This gets rid of an ipc method (meaning we get rid of one method call
during piece rendering) and is also more principled, than a call which
might conceivably give different answers at different times.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/dice.rs
src/gamestate.rs
src/pcrender.rs