From bcd3066c95de64159b00c838ccac7ec0d0cca965 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 12 Feb 2023 18:52:17 +0100 Subject: [PATCH] todo --- kubi/src/networking.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/kubi/src/networking.rs b/kubi/src/networking.rs index 39c9989..136cd49 100644 --- a/kubi/src/networking.rs +++ b/kubi/src/networking.rs @@ -35,10 +35,13 @@ pub fn client_connect( client.0.connect().unwrap(); } -pub fn update_client( - mut client: UniqueViewMut +pub fn update_client_and_get_events( + mut client: UniqueViewMut, ) { client.0.update().unwrap(); + for event in client.0.process_events() { + todo!() + } } pub fn init_networking() -> Workload { @@ -50,7 +53,7 @@ pub fn init_networking() -> Workload { pub fn update_networking() -> Workload { ( - update_client, + update_client_and_get_events, ).into_workload().run_if(is_multiplayer) }