public void PluginRun()
        {
            if (!IsGameReady())
            {
                Log("Loading or not in game...");

                while (!IsGameReady())
                {
                    Utils.Sleep(50);
                }
            }

            ClearLogs();
            Log("CombatMaster v." + PluginVersion());
            //Log(ChangeLog());


            Debug();
            Initialize();


            UIContext.Load();

            try
            {
                while (!initStop)
                {
                    Utils.Sleep(50);
                }
            }
            catch
            {
                // Skip
            }
            finally
            {
                UIContext.Unload();
            }
        }
Пример #2
0
        public void PluginRun()
        {
            if (!IsGameReady())
            {
                Log("Loading or not in game...");

                while (!IsGameReady())
                {
                    Utils.Sleep(50);
                }
            }

            ClearLogs();
            Log("AeonMiner v." + PluginVersion());


            Debug();
            Initialize();


            UIContext.Load();

            try
            {
                while (!initStop)
                {
                    Utils.Sleep(50);
                }
            }
            catch (ThreadAbortException)
            {
                // Skip
            }
            finally
            {
                UIContext.Unload();
            }
        }