diff options
Diffstat (limited to 'core/src/data/controller/implements.rs')
| -rw-r--r-- | core/src/data/controller/implements.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/src/data/controller/implements.rs b/core/src/data/controller/implements.rs deleted file mode 100644 index 86a19de..0000000 --- a/core/src/data/controller/implements.rs +++ /dev/null @@ -1,21 +0,0 @@ -use std::sync::{Arc, Mutex}; -use crate::data::controller::runtime::structs::ControllerRuntime; -use crate::data::controller::structs::ControllerData; -use crate::data::player::structs::Player; - -impl ControllerData { - - pub fn bind_player(&mut self, player: Player) -> &mut ControllerData { - self.player = player; - self - } - - /// Build the controller-side runtime using controller data - pub fn runtime(self) -> Arc<Mutex<ControllerRuntime>> { - let runtime = ControllerRuntime { - player: self.player, - ..Default::default() - }; - Arc::new(Mutex::new(runtime)) - } -}
\ No newline at end of file |
