mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 16:28:42 -06:00
todo
This commit is contained in:
parent
05444bd4b8
commit
bcd3066c95
|
@ -35,10 +35,13 @@ pub fn client_connect(
|
|||
client.0.connect().unwrap();
|
||||
}
|
||||
|
||||
pub fn update_client(
|
||||
mut client: UniqueViewMut<UdpClient>
|
||||
pub fn update_client_and_get_events(
|
||||
mut client: UniqueViewMut<UdpClient>,
|
||||
) {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue