Ejemplo n.º 1
0
        //----------------------------------------------------------------------
        // 私有接口
        //----------------------------------------------------------------------
        private static void _InitSystems()
        {
            // GfxSystem
            GfxSystem.Init();
            GfxSystem.SetLogicInvoker(s_LogicThread);
            GfxSystem.SetLogicLogCallback((string format, object[] args) => {
                s_LogicLogger.Log(format, args);
            });
            GfxSystem.SetGameLogicNotification(GameLogicNotification.Instance);
            // Managers
            EntityManager.Instance.Init();
            // System
            WorldSystem.Instance.Init();
            WorldSystem.Instance.LoadData();

            PlayerControl.Instance.Init();
            LobbyNetworkSystem.Instance.Init();
            NetworkSystem.Instance.Init();
            AiViewManager.Instance.Init();
        }