static int _m_Unload(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaMVC.AssetLoader __cl_gen_to_be_invoked = (LuaMVC.AssetLoader)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) { string assetFullName = LuaAPI.lua_tostring(L, 2); bool isThorough = LuaAPI.lua_toboolean(L, 3); bool uploadDependenices = LuaAPI.lua_toboolean(L, 4); __cl_gen_to_be_invoked.Unload(assetFullName, isThorough, uploadDependenices); return(0); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { string assetFullName = LuaAPI.lua_tostring(L, 2); bool isThorough = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.Unload(assetFullName, isThorough); return(0); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string assetFullName = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.Unload(assetFullName); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LuaMVC.AssetLoader.Unload!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { LuaMVC.AssetLoader __cl_gen_ret = new LuaMVC.AssetLoader(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LuaMVC.AssetLoader constructor!")); }
static int _m_OnDestroy(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaMVC.AssetLoader __cl_gen_to_be_invoked = (LuaMVC.AssetLoader)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.OnDestroy( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }