Esempio n. 1
0
        public static unsafe void Init()
        {
            #if DEBUG
            Debugger.Launch();
            #endif

            // Start thread to update current level.
            _heroesUtility = new Heroes.Heroes();
            _discord       = new Discord(_heroesUtility);
        }
Esempio n. 2
0
        /*
         *  ------------
         *  Construction
         *  ------------
         */

        public Discord(Heroes.Heroes heroes)
        {
            Initialize();
            _heroes = heroes;

            _discordThread = new Thread(() =>
            {
                while (true)
                {
                    SetPresence();
                    Thread.Sleep(1000);
                }
            });
            _discordThread.Start();
        }