protected override void __Stop() { if (m_levelData == null) { return; } SchUpdate(false); m_levelData = null; }
static public int get_url(IntPtr l) { try { mg.org.LevelMgr.LevelData self = (mg.org.LevelMgr.LevelData)checkSelf(l); pushValue(l, true); pushValue(l, self.url); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_url(IntPtr l) { try { mg.org.LevelMgr.LevelData self = (mg.org.LevelMgr.LevelData)checkSelf(l); System.String v; checkType(l, 2, out v); self.url = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
//-------∽-★-∽------∽-★-∽--------∽-★-∽数据操作∽-★-∽--------∽-★-∽------∽-★-∽--------// protected override void StartLoad() { m_loadReqLevel = m_loadReq as LoadReqLevel; //异步请求 m_levelData = LevelMgr.me.LoadAsync(m_url, m_loadReqLevel.isAdditive, null, m_loadReq.referId); //如果已经加载完成, 返回空 if (m_levelData.isDone) { //加载成功 OnComplete(); } else { m_loadReq.OnStart(); SchUpdate(true); } }