Exemplo n.º 1
0
        public void Start()
        {
            eventManager = new EventManager();

            NetConfig.Init();
            TaskManger.CreateInstance().Init();
            TableManager.CreateInstance();
            TableManager.instance.getTypeFunc = (name) => { return(Type.GetType(name)); };
            TableManager.instance.Init();
            NetworkManager.CreateInstance().Init();
            ProxyManager.CreateInstance().Init();

            // start server
            NetworkManager.instance.forClient.server.Start();
            Logger.LogInfo("战场服务器已启动");
            // connect to main server
            ProxyManager.instance.GetProxy <MainServerProxy>().Connenct();


            m_updater.Start();
            m_updater.Add(this);
            m_updater.Add(ProxyManager.instance);

            Time.SetUpdater(m_updater);
        }
Exemplo n.º 2
0
        private void CreateInstance()
        {
            m_eventMgr = new EventManager();
            NetworkManager.CreateInstance();
            ProxyManager.CreateInstance();
            UIManager.CreateInstance();
            TaskManger.CreateInstance();

            TableManager.CreateInstance();
            Localization.CreateInstance();
        }