//-------∽-★-∽------∽-★-∽--------∽-★-∽数据操作∽-★-∽--------∽-★-∽------∽-★-∽--------// protected override LoadReq ExcuteLoad(LoadReq req_) { LoadReq req = req_; AbstractLoader loader = LoaderFactory.GetLoader(req_.type); req = loader.LoadAsync(req); if (loader.isDone) { LoaderFactory.CloseLoader(loader); return req; } req.OnStart(); //m_isAsync = isAsync_; //m_progress = 0; //m_data = null; //m_errorStr = null; m_isOpen = true; m_done = false; m_loading = true; m_loaders.Add(loader); SchUpdate(true); //__print("○load start: " + loader.UrlStr); NotifyAsynEvt(LOAD_EVT.START, req); return req; }
protected AbstractLoader StartLoader(LoadReq req_) { AbstractLoader loader = LoaderFactory.GetLoader(req_.type); loader.LoadAsync(req_); return(loader); }
void LoadOne() { LoadReq req_ = m_loadReqQue.load_reqs[m_load_idx]; if (m_loader == null || m_loader.Req.type != req_.type) { LoaderFactory.CloseLoader(m_loader); m_loader = LoaderFactory.GetLoader(req_.type); } m_loader.LoadAsync(req_); CheckLoaded(); }