diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 2326310..5b6a857 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use crate::shared::champion::*; +use crate::shared::faction::*; use clap::Parser; use lightyear::transport::io::TransportConfig; use rand::Rng; @@ -20,6 +21,8 @@ struct Cli { server: bool, #[arg(long, default_value = "meele")] champion: Champion, + #[arg(long, default_value = "blue")] + faction: Faction, } fn main() { @@ -42,6 +45,7 @@ fn main() { client_id as u64, TransportConfig::UdpSocket(client_addr), cli.champion, + cli.faction, ); } else { let (from_server_send, from_server_recv) = crossbeam_channel::unbounded(); @@ -62,6 +66,7 @@ fn main() { send: to_server_send, }, cli.champion, + cli.faction, ); } } |