We still don't deal with listing (partly) occluded pieces, or taking
them into account for library placement.
In the future this may become more sophisticaed.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
let desc_html = pinfo.describe_html(None);
let itemname = pinfo.itemname().to_string();
let bbox = pinfo.bbox_approx();
- let lens = TransparentLens { };
#[allow(irrefutable_let_patterns)]
- let visible = if let TransparentLens { } = lens {
+ let visible = if ! piece_at_all_occluded(&ig.gs.occults, piece) {
Some(MgmtGamePieceVisibleInfo {
pos, face, desc_html, bbox
})
PieceRenderInstructions { id: vpiece, angle, face }
}
+pub fn piece_at_all_occluded(
+ _occults: &GameOccults, // xxx
+ _piece: PieceId, // xxx
+) -> bool {
+ false
+}
+
pub fn vpiece_decode(
_gs: &GameState, // xxx
player: PlayerId,