Пример #1
0
        //-----------------------------------------------------------------------------

        public void Start()
        {
            if (StartupHealthCheck())
            {
                MasterManager.Load(0);
                //EmojiManager.Instance.LoadAll();

                WvsLogin.Start();
                WvsGames.ToList().ForEach(x => x.Start());

                MasterManager.SetEventManager(WvsGames[0]);

                WvsShop.Start();

                TimerUpdate          = WvsLogin.CreateTimer();        //Temp
                TimerUpdate.Interval = Constants.GlobalUpdateDelay;
                TimerUpdate.Elapsed  = GlobalUpdater;
                TimerUpdate.Start();

                TimerPing          = WvsLogin.CreateTimer();        //Temp
                TimerPing.Interval = Constants.KeepAliveDelay;
                TimerPing.Elapsed  = PingUpdater;
                TimerPing.Start();

                //FetchLastDailyQuestRecordReset();

                Log.Info("[WvsCenter] Started");

                if (Constants.AllowAccountLoginOverride)
                {
                    Log.Info("[WARNING] Be advised, account login override is enabled.");
                }
            }
            else
            {
                Log.Error("[WvsCenter] Failed startup health check.");
            }
        }
Пример #2
0
 public void Start()
 {
     m_login.Start();
     m_games.ToList().ForEach(x => x.Start());
 }