static int LoadUI(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(string), typeof(string))) { string arg0 = ToLua.ToString(L, 1); string arg1 = ToLua.ToString(L, 2); LuaAssetLoader.LoadUI(arg0, arg1); return(0); } else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(string), typeof(LuaInterface.LuaFunction))) { string arg0 = ToLua.ToString(L, 1); LuaFunction arg1 = ToLua.ToLuaFunction(L, 2); LuaAssetLoader.LoadUI(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaAssetLoader.LoadUI")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int LoadGameObjectByName(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(string), typeof(AssetLoader.EAssetType), typeof(string))) { string arg0 = ToLua.ToString(L, 1); AssetLoader.EAssetType arg1 = (AssetLoader.EAssetType)ToLua.ToObject(L, 2); string arg2 = ToLua.ToString(L, 3); LuaAssetLoader.LoadGameObjectByName(arg0, arg1, arg2); return(0); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(string), typeof(AssetLoader.EAssetType), typeof(LuaInterface.LuaFunction))) { string arg0 = ToLua.ToString(L, 1); AssetLoader.EAssetType arg1 = (AssetLoader.EAssetType)ToLua.ToObject(L, 2); LuaFunction arg2 = ToLua.ToLuaFunction(L, 3); LuaAssetLoader.LoadGameObjectByName(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaAssetLoader.LoadGameObjectByName")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnInitPreload(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFunction arg0 = ToLua.CheckLuaFunction(L, 1); LuaAssetLoader.OnInitPreload(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateLuaAssetLoader(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { LuaAssetLoader obj = new LuaAssetLoader(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: LuaAssetLoader.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }