aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index b615ddc..2326310 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,4 @@
+use crate::shared::champion::*;
use clap::Parser;
use lightyear::transport::io::TransportConfig;
use rand::Rng;
@@ -17,6 +18,8 @@ struct Cli {
connect_to: Option<SocketAddr>,
#[arg(long, num_args = 0)]
server: bool,
+ #[arg(long, default_value = "meele")]
+ champion: Champion,
}
fn main() {
@@ -38,6 +41,7 @@ fn main() {
Some(server_addr),
client_id as u64,
TransportConfig::UdpSocket(client_addr),
+ cli.champion,
);
} else {
let (from_server_send, from_server_recv) = crossbeam_channel::unbounded();
@@ -57,6 +61,7 @@ fn main() {
recv: from_server_recv,
send: to_server_send,
},
+ cli.champion,
);
}
}