public static void Start()
        {
            if (monitorThread != null) return;

            monitorThread = new ProgramThread ("LMon", MonitorLoop);
            monitorThread.Start ();

            LoadLastMinute = -1;
            LoadLastSecond = -1;
        }
        public static void Start()
        {
            if (monitorThread != null)
            {
                return;
            }

            monitorThread = new ProgramThread("LMon", MonitorLoop);
            monitorThread.Start();

            LoadLastMinute = -1;
            LoadLastSecond = -1;
        }
        public static void StartServer()
        {
            var ctx = new HookContext
            {
                Sender = new ConsoleSender(),
            };

            var args = new HookArgs.ServerStateChange
            {
                ServerChangeState = ServerState.STARTING
            };

            HookPoints.ServerStateChange.Invoke(ref ctx, ref args);

            if (serverThread == null)
            {
                serverThread = new ProgramThread("Serv", NetPlay.ServerLoopLoop);
                serverThread.Start();
            }
            disconnect = false;
        }
        public static void StartServer()
        {
            var ctx = new HookContext
            {
                Sender = new ConsoleSender(),
            };

            var args = new HookArgs.ServerStateChange
            {
                ServerChangeState = ServerState.STARTING
            };

            HookPoints.ServerStateChange.Invoke(ref ctx, ref args);

            if (serverThread == null)
            {
                serverThread = new ProgramThread ("Serv", NetPlay.ServerLoopLoop);
                serverThread.Start();
            }
            disconnect = false;
        }
 public static void StartServer()
 {
     if (serverThread == null)
     {
         serverThread = new ProgramThread ("Serv", Netplay.ServerLoopLoop);
         serverThread.Start();
     }
     disconnect = false;
 }