Ejemplo n.º 1
0
 public void Run(string[] args)
 {
     if (args.Length == 1)
     {
         Console.WriteLine(Name + " - " + Description);
         return;
     }
     if (args.Length > 2 && args[1].Equals("get"))
     {
         Console.WriteLine(SVars.getValue <Object>(args[2])?.ToString());
     }
     if (args.Length > 3 && args[1].Equals("set"))//LOOKAT: add solution of other types, ex: Booleans
     {
         if (SVars.getValue <object>(args[2]) != null)
         {
             SVars.Change(args[2], args[3]);
         }
         else
         {
             SVars.Register(args[2], args[3]);
         }
     }
 }
Ejemplo n.º 2
0
 public void Run(string[] args)
 {
     SVars.Change("exit", true);
 }