diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-23 13:57:47 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-23 13:57:47 +0100 |
commit | 12a6419eaa087f34bdde49b3f9227b3cb5575341 (patch) | |
tree | 8b8dbadc50e81cef1386c2711edf0479e37d35ec /src/main.rs | |
parent | 23d32213ff8832d2c4360618eb511a0098153818 (diff) |
feat: add client faction
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, ); } } |