Exemplo n.º 1
0
        protected static void MainLoop()
        {
            while (ServerIsWork)
            {
                try
                {
                    //Services:

                    AccountService.Action();
                    AiService.Action();
                    ChatService.Action();
                    ControllerService.Action();
                    FeedbackService.Action();
                    ObserverService.Action();
                    PlayerService.Action();
                    SkillsLearnService.Action();
                    StatsService.Action();
                    StorageService.Action();
                    TeleportService.Action();
                    VisibleService.Action();

                    //Engines:

                    AdminEngine.Action();
                    SkillEngine.Action();

                    //Others:

                    DelayedAction.CheckActions();
                }
                catch (Exception ex)
                {
                    Log.ErrorException("MainLoop:", ex);
                }

                Thread.Sleep(10);
            }
        }