static int AddDownload(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.DownloadComponent), typeof(string), typeof(string))) { UnityGameFramework.Runtime.DownloadComponent obj = (UnityGameFramework.Runtime.DownloadComponent)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); string arg1 = ToLua.ToString(L, 3); int o = obj.AddDownload(arg0, arg1); LuaDLL.lua_pushinteger(L, o); return(1); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.DownloadComponent), typeof(string), typeof(string), typeof(object))) { UnityGameFramework.Runtime.DownloadComponent obj = (UnityGameFramework.Runtime.DownloadComponent)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); string arg1 = ToLua.ToString(L, 3); object arg2 = ToLua.ToVarObject(L, 4); int o = obj.AddDownload(arg0, arg1, arg2); LuaDLL.lua_pushinteger(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityGameFramework.Runtime.DownloadComponent.AddDownload")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveAllDownload(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityGameFramework.Runtime.DownloadComponent obj = (UnityGameFramework.Runtime.DownloadComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.DownloadComponent)); obj.RemoveAllDownload(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_FlushSize(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityGameFramework.Runtime.DownloadComponent obj = (UnityGameFramework.Runtime.DownloadComponent)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.FlushSize = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FlushSize on a nil value" : e.Message)); } }
static int get_CurrentSpeed(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityGameFramework.Runtime.DownloadComponent obj = (UnityGameFramework.Runtime.DownloadComponent)o; float ret = obj.CurrentSpeed; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurrentSpeed on a nil value" : e.Message)); } }
static int get_FlushSize(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityGameFramework.Runtime.DownloadComponent obj = (UnityGameFramework.Runtime.DownloadComponent)o; int ret = obj.FlushSize; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FlushSize on a nil value" : e.Message)); } }