diff options
| author | 1992414357@qq.com <1992414357@qq.com> | 2025-06-11 19:14:04 +0800 |
|---|---|---|
| committer | 1992414357@qq.com <1992414357@qq.com> | 2025-06-11 19:14:04 +0800 |
| commit | 9e48af01ae56fe813869ada24de291ab98b361e2 (patch) | |
| tree | 82b56adecbeb260ebbf2c512d78fe2d63805eb36 /core/src/data/controller/implements.rs | |
| parent | aa326e69b18a4390ffbc97268eaec4793761f083 (diff) | |
组合模块中 structs.rs 和 implements.rs 文件
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 |
