aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-04-08 11:48:54 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-04-08 12:10:44 +0200
commit7643fb90dcf148605e3309c2007cd8a4c27914fa (patch)
tree5caf8100b3d99418dad1e284398392aa83fa29bb /src/main.rs
parent80109d0da833842695948fe404489ea33f9dcfdb (diff)
chore: update lightyear to 0.13.0
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
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,