diff options
-rw-r--r-- | server/src/state.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/server/src/state.rs b/server/src/state.rs index e3283c95..d2470983 100644 --- a/server/src/state.rs +++ b/server/src/state.rs @@ -19,23 +19,31 @@ pub struct State { #[derive(Parser)] #[clap(multicall = true)] enum Command { + /// Start a new game Start { + /// Gamedata specification #[arg(default_value = "junior")] spec: String, + /// Duration in seconds #[arg(default_value = "420")] timer: u64, }, + /// Abort the current game + End, + /// Download recipe/demand/map's source declaration Download { + /// Resource kind #[arg(value_enum)] r#type: DownloadType, + /// Name name: String, }, + /// List all recipes, demands and maps List, - Effect { - name: String, - }, + /// Send an effect + Effect { name: String }, + /// Reload the resource index Reload, - End, } #[derive(ValueEnum, Clone)] |