diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-04-08 11:48:54 +0200 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-04-08 12:10:44 +0200 |
commit | 7643fb90dcf148605e3309c2007cd8a4c27914fa (patch) | |
tree | 5caf8100b3d99418dad1e284398392aa83fa29bb /src/main.rs | |
parent | 80109d0da833842695948fe404489ea33f9dcfdb (diff) |
chore: update lightyear to 0.13.0
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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, |