summaryrefslogtreecommitdiffstats
path: root/src/client/games/manager.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/client/games/manager.rs (renamed from src/bin/client/games/manager.rs)9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/bin/client/games/manager.rs b/src/client/games/manager.rs
index 0b5b4cb..be96b1a 100644
--- a/src/bin/client/games/manager.rs
+++ b/src/client/games/manager.rs
@@ -1,5 +1,5 @@
1use crate::games::slots::SlotsGame; 1use super::slots::SlotsGame;
2use crate::games::traits::{Game, GameError, GamePhase, GameState}; 2use super::traits::{Game, GameError, GamePhase, GameState};
3use std::collections::HashMap; 3use std::collections::HashMap;
4use std::io::Write; 4use std::io::Write;
5 5
@@ -49,10 +49,7 @@ impl GameManager {
49 Ok(()) 49 Ok(())
50 } 50 }
51 51
52 pub fn start_game( 52 pub fn start_game<W: Write>(&mut self, stream: &mut W) -> Result<(), GameError> {
53 &mut self,
54 stream: &mut crate::connection::TlsStream,
55 ) -> Result<(), GameError> {
56 let game_type = self 53 let game_type = self
57 .pending_game_type 54 .pending_game_type
58 .as_ref() 55 .as_ref()