From 71c95fcf1211cb32755f028c8322c9c07ddd6f89 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 30 Dec 2022 10:57:13 -0500 Subject: Display cards during game result This uses the Hand widget which is not working well for vertical hands yet. --- protocol/src/bridge_engine.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'protocol/src/bridge_engine.rs') diff --git a/protocol/src/bridge_engine.rs b/protocol/src/bridge_engine.rs index 75a51ba..44e5c91 100644 --- a/protocol/src/bridge_engine.rs +++ b/protocol/src/bridge_engine.rs @@ -739,6 +739,13 @@ impl PlayResult { PlayResult::Played(r) => r.deal(), } } + + pub fn bidding(&self) -> &Bidding { + match self { + PlayResult::PassedOut(r) => &r.bidding, + PlayResult::Played(r) => &r.bidding, + } + } } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] -- cgit v1.2.3