Пример #1
0
        //-------∽-★-∽------∽-★-∽--------∽-★-∽数据操作∽-★-∽--------∽-★-∽------∽-★-∽--------//

        protected override LoadReq ExcuteLoad(LoadReq req_)
        {
            if (m_loadReq == req_)
            {
                return(m_loadReq);
            }

            //关闭当前加载
            Close();

            m_loadReqQue = req_ as LoadReqBatch;
            m_load_num   = m_loadReqQue.load_reqs.Length;
            if (m_load_num == 0)
            {
                Log.Assert("加载列表为空", this);
                return(m_loadReqQue);
            }

            m_loadReq = m_loadReqQue;
            m_url     = m_loadReqQue.load_reqs[0].url;
            m_url_str = m_url + (m_load_num > 1 ? " <...>" : "");

            m_progress = 0;
            m_data     = null;
            m_errorStr = null;

            m_isOpen  = true;
            m_done    = false;
            m_loading = true;

            __print("○load start: " + m_url_str);

            NotifyAsynEvt(LOAD_EVT.START, m_loadReq);

            StartLoad();

            return(m_loadReq);
        }
Пример #2
0
 protected override void __Close()
 {
     m_loadReqQue = null;
 }