void LHighway_onProgress(CHighway loader, HighwayEventArg arg) { if (onProgressFn != null) { onProgressFn.call(loader, arg); } }
static public int LoadReq(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (matchType(l, argc, 2, typeof(CRequest))) { CHighway self = (CHighway)checkSelf(l); CRequest a1; checkType(l, 2, out a1); self.LoadReq(a1); return(0); } else if (matchType(l, argc, 2, typeof(IList <CRequest>))) { CHighway self = (CHighway)checkSelf(l); System.Collections.Generic.IList <CRequest> a1; checkType(l, 2, out a1); self.LoadReq(a1); return(0); } LuaDLL.luaL_error(l, "No matched override function to call"); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
void LHighway_onAllComplete(CHighway loader) { if (onAllCompleteFn != null) { onAllCompleteFn.call(loader); } }
public static CHighway GetInstance() { if (_instance == null) { _instance = new CHighway(); } return(_instance); }
static public int get_currentLoading(IntPtr l) { try { CHighway self = (CHighway)checkSelf(l); pushValue(l, self.currentLoading); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int GetInstance_s(IntPtr l) { try { var ret = CHighway.GetInstance(); pushValue(l, ret); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int InitProgressState(IntPtr l) { try { CHighway self = (CHighway)checkSelf(l); self.InitProgressState(); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int constructor(IntPtr l) { try { CHighway o; o = new CHighway(); pushValue(l, o); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
public static int constructor(IntPtr l) { try { CHighway o; o=new CHighway(); pushValue(l,o); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } }
public static int constructor(IntPtr l) { try { CHighway o; o=new CHighway(); pushValue(l,true); pushValue(l,o); return 2; } catch(Exception e) { return error(l,e); } }
static public int set_totalLoading(IntPtr l) { try { CHighway self = (CHighway)checkSelf(l); int v; checkType(l, 2, out v); self.totalLoading = v; return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int set_cache(IntPtr l) { try { CHighway self = (CHighway)checkSelf(l); System.Object v; checkType(l, 2, out v); self.cache = v; return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int SetReqDataFromData_s(IntPtr l) { try { CRequest a1; checkType(l, 1, out a1); System.Object a2; checkType(l, 2, out a2); CHighway.SetReqDataFromData(a1, a2); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
void LHighway_onAllComplete(CHighway loader) { if (onAllCompleteFn != null) onAllCompleteFn.Call(loader); }
void LHighway_onProgress(CHighway loader, HighwayEventArg arg) { if (onProgressFn != null) onProgressFn.Call(loader, arg); }
public static CHighway GetInstance() { if (_instance == null) _instance = new CHighway(); return _instance; }
static int _CreateCHighway(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { CHighway obj = new CHighway(); LuaScriptMgr.PushObject(L, obj); return 1; } else { LuaDLL.luaL_error(L, "invalid arguments to method: CHighway.New"); } return 0; }