static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.AssetBundle>(L, 2)) { UnityEngine.AssetBundle _ab = (UnityEngine.AssetBundle)translator.GetObject(L, 2, typeof(UnityEngine.AssetBundle)); DCETRuntime.AssetLoaderAsync gen_ret = new DCETRuntime.AssetLoaderAsync(_ab); translator.Push(L, 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 DCETRuntime.AssetLoaderAsync constructor!")); }
static int _m_Dispose(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCETRuntime.AssetLoaderAsync gen_to_be_invoked = (DCETRuntime.AssetLoaderAsync)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Dispose( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_LoadAllAssetsAsync(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCETRuntime.AssetLoaderAsync gen_to_be_invoked = (DCETRuntime.AssetLoaderAsync)translator.FastGetCSObj(L, 1); { System.Threading.Tasks.Task <UnityEngine.Object[]> gen_ret = gen_to_be_invoked.LoadAllAssetsAsync( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }