static public int HasAsset(IntPtr l) { try { mg.org.AssetCache self = (mg.org.AssetCache)checkSelf(l); System.String a1; checkType(l, 2, out a1); var ret = self.HasAsset(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
protected virtual LoadReq ExcuteLoad(LoadReq req_) { if (m_loadReq == req_) { return(m_loadReq); } //关闭当前加载 Close(); m_loadReq = req_; m_url = m_loadReq.url; m_url_str = m_url; m_progress = 0; m_data = null; m_errorStr = null; m_isOpen = true; m_loading = true; m_done = false; __print("○load start: " + m_url_str); NotifyAsynEvt(LOAD_EVT.START, m_loadReq); if (m_assetCache.HasAsset(m_url)) { //已加载,立刻完成 m_data = m_assetCache.GetAsset(m_url); OnComplete(); } else { StartLoad(); } return(m_loadReq); }