From 12a6419eaa087f34bdde49b3f9227b3cb5575341 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sat, 23 Mar 2024 13:57:47 +0100 Subject: feat: add client faction --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.rs') 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, ); } } -- cgit v1.2.3