Пример #1
0
 public bool AutotilesFunc()
 {
     if (CurrentArgs.Count == 1)
     {
         Console.WriteLine("For information about the '--autotiles' parameter, please use 'map edit --autotiles --help'.");
         return(false);
     }
     else
     {
         cli = new AutotilesCommandLineHandler(this.Create);
         cli.Parse(CurrentArgs.GetRange(ArgIndex + 1, CurrentArgs.Count - ArgIndex - 1));
         return(false);
     }
 }
Пример #2
0
 public void Start()
 {
     while (Program.Headless)
     {
         Console.ForegroundColor = ConsoleColor.Green;
         Console.Write($"$:> ");
         Console.ForegroundColor = ConsoleColor.Yellow;
         string Input = Console.ReadLine();
         Console.ForegroundColor = ConsoleColor.White;
         foreach (List <string> Args in CommandLineHandler.InputToArgs(Input))
         {
             if (!cli.Parse(Args))
             {
                 break;
             }
         }
     }
     Editor.DumpGeneralSettings();
 }