コード例 #1
0
        public void Start()
        {
            if (!IsListening)
            {
                IsListening = true;

                LiveDataService.MonitorCurrentScreen(OnScreenUpdated);
                LiveDataService.MonitorFormulae(UpdateFormulae);
                LiveDataService.MonitorSaints(UpdateSaints);
            }
        }
コード例 #2
0
 private static void DoListFormulae(string[] args)
 {
     if (args.Length == 1 || args[1] == "list")
     {
         foreach (var l in StaticDataService.Formulae)
         {
             Console.WriteLine(l);
         }
     }
     else if (args[1] == "listen")
     {
         StartLiveDataService(() =>
         {
             LiveDataService.MonitorFormulae(formulae =>
             {
                 Console.WriteLine();
                 foreach (var f in formulae)
                 {
                     Console.WriteLine(f);
                 }
             });
         });
     }
 }