diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-12-30 10:57:13 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-12-30 10:57:13 -0500 |
commit | 71c95fcf1211cb32755f028c8322c9c07ddd6f89 (patch) | |
tree | 8b81d04ce5bc7cdc6eaac9b8b693561363a3f0ec /protocol/src/bridge_engine.rs | |
parent | dbe316d8b337eadff5518585dfc163f2724d0810 (diff) |
Display cards during game result
This uses the Hand widget which is not working well for vertical hands
yet.
Diffstat (limited to 'protocol/src/bridge_engine.rs')
-rw-r--r-- | protocol/src/bridge_engine.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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)] |