public static unsafe void Init() { #if DEBUG Debugger.Launch(); #endif // Start thread to update current level. _heroesUtility = new Heroes.Heroes(); _discord = new Discord(_heroesUtility); }
/* * ------------ * Construction * ------------ */ public Discord(Heroes.Heroes heroes) { Initialize(); _heroes = heroes; _discordThread = new Thread(() => { while (true) { SetPresence(); Thread.Sleep(1000); } }); _discordThread.Start(); }