public static bool StopServer() { if (GServ == null) { return(false); } SysCons.LogInfo("Stopping GameServer.."); GServ.Shutdown(); GameServerThread.Abort(); GServ = null; return(true); }
public static bool StartServer() { if (GServ != null) { return(false); } GServ = new GameServ(); GameServerThread = new Thread(GServ.Run) { IsBackground = true, CurrentCulture = CultureInfo.InvariantCulture }; GameServerThread.Start(); return(true); }