Esempio n. 1
0
 public CommandLineOptions(string[] commandLineArgs, NameValueCollection queryParams, string argumentText)
 {
     var args = new ProgramArgs(commandLineArgs, queryParams, argumentText);
     DedicatedServer = args.IsSet("dedicated_server");
     SaveTemplates = args.IsSet("save_templates");
     DeleteTemplates = args.IsSet("delete_templates");
     ArenaFilename = args.GetValue("arena");
     if (args.IsSet("quickstart")) QuickStart = new QuickStartOptions
     {
         GameServerEndPoints = args.GetValues("server"),
         GameServerName = args.GetValue("server_name") ?? "Some Server",
         LoginToken = args.GetValue("login_token"),
         ShipName = args.GetValue("ship"),
         Weapon2Name = args.GetValue("weapon"),
         ExtraDeviceName = args.GetValue("mod"),
     };
 }