From 7643fb90dcf148605e3309c2007cd8a4c27914fa Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 8 Apr 2024 11:48:54 +0200 Subject: chore: update lightyear to 0.13.0 --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 4ee5e14..210909b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ use crate::shared::champion::*; use crate::shared::faction::*; use clap::Parser; +use lightyear::connection::id::ClientId; use lightyear::transport::io::TransportConfig; use rand::Rng; use shared::SERVER_PORT; @@ -42,7 +43,7 @@ fn main() { let client_addr = SocketAddr::new(Ipv4Addr::UNSPECIFIED.into(), SERVER_PORT + client_id); client::main( Some(server_addr), - client_id as u64, + ClientId::Netcode(client_id as u64), TransportConfig::UdpSocket(client_addr), cli.champion, cli.faction, @@ -60,7 +61,7 @@ fn main() { client::main( None, - client_id as u64, + ClientId::Netcode(client_id as u64), TransportConfig::LocalChannel { recv: from_server_recv, send: to_server_send, -- cgit v1.2.3