static public int LoadAllAssetsAsync(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l);
             var ret = self.LoadAllAssetsAsync();
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 2)
         {
             UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l);
             System.Type             a1;
             checkType(l, 2, out a1);
             var ret = self.LoadAllAssetsAsync(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 2
0
    static int LoadAllAssetsAsync(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                UnityEngine.AssetBundle        obj = (UnityEngine.AssetBundle)ToLua.CheckObject(L, 1, typeof(UnityEngine.AssetBundle));
                UnityEngine.AssetBundleRequest o   = obj.LoadAllAssetsAsync();
                ToLua.PushSealed(L, o);
                return(1);
            }
            else if (count == 2)
            {
                UnityEngine.AssetBundle        obj  = (UnityEngine.AssetBundle)ToLua.CheckObject(L, 1, typeof(UnityEngine.AssetBundle));
                System.Type                    arg0 = ToLua.CheckMonoType(L, 2);
                UnityEngine.AssetBundleRequest o    = obj.LoadAllAssetsAsync(arg0);
                ToLua.PushSealed(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AssetBundle.LoadAllAssetsAsync"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Esempio n. 3
0
    static int LoadAllAssetsAsync(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.AssetBundle.Register");
#endif
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                UnityEngine.AssetBundle        obj = (UnityEngine.AssetBundle)ToLua.CheckObject <UnityEngine.AssetBundle>(L, 1);
                UnityEngine.AssetBundleRequest o   = obj.LoadAllAssetsAsync();
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2)
            {
                UnityEngine.AssetBundle        obj  = (UnityEngine.AssetBundle)ToLua.CheckObject <UnityEngine.AssetBundle>(L, 1);
                System.Type                    arg0 = ToLua.CheckMonoType(L, 2);
                UnityEngine.AssetBundleRequest o    = obj.LoadAllAssetsAsync(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AssetBundle.LoadAllAssetsAsync"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Esempio n. 4
0
 static int QPYX_LoadAllAssetsAsync_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 1)
         {
             UnityEngine.AssetBundle        QPYX_obj_YXQP = (UnityEngine.AssetBundle)ToLua.CheckObject(L_YXQP, 1, typeof(UnityEngine.AssetBundle));
             UnityEngine.AssetBundleRequest QPYX_o_YXQP   = QPYX_obj_YXQP.LoadAllAssetsAsync();
             ToLua.PushSealed(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 2)
         {
             UnityEngine.AssetBundle        QPYX_obj_YXQP  = (UnityEngine.AssetBundle)ToLua.CheckObject(L_YXQP, 1, typeof(UnityEngine.AssetBundle));
             System.Type                    QPYX_arg0_YXQP = ToLua.CheckMonoType(L_YXQP, 2);
             UnityEngine.AssetBundleRequest QPYX_o_YXQP    = QPYX_obj_YXQP.LoadAllAssetsAsync(QPYX_arg0_YXQP);
             ToLua.PushSealed(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: UnityEngine.AssetBundle.LoadAllAssetsAsync"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static public int LoadAllAssetsAsync(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l);
             var ret = self.LoadAllAssetsAsync();
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 2)
         {
             UnityEngine.AssetBundle self = (UnityEngine.AssetBundle)checkSelf(l);
             System.Type             a1;
             checkType(l, 2, out a1);
             var ret = self.LoadAllAssetsAsync(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function LoadAllAssetsAsync to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Esempio n. 6
0
    static int LoadAllAssetsAsync(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 1 && ToLua.CheckTypes(L, 1, typeof(UnityEngine.AssetBundle)))
        {
            UnityEngine.AssetBundle        obj = (UnityEngine.AssetBundle)ToLua.ToObject(L, 1);
            UnityEngine.AssetBundleRequest o   = null;

            try
            {
                o = obj.LoadAllAssetsAsync();
            }
            catch (Exception e)
            {
                return(LuaDLL.toluaL_exception(L, e));
            }

            ToLua.PushObject(L, o);
            return(1);
        }
        else if (count == 2 && ToLua.CheckTypes(L, 1, typeof(UnityEngine.AssetBundle), typeof(System.Type)))
        {
            UnityEngine.AssetBundle        obj  = (UnityEngine.AssetBundle)ToLua.ToObject(L, 1);
            System.Type                    arg0 = (System.Type)ToLua.ToObject(L, 2);
            UnityEngine.AssetBundleRequest o    = null;

            try
            {
                o = obj.LoadAllAssetsAsync(arg0);
            }
            catch (Exception e)
            {
                return(LuaDLL.toluaL_exception(L, e));
            }

            ToLua.PushObject(L, o);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: UnityEngine.AssetBundle.LoadAllAssetsAsync");
        }

        return(0);
    }
Esempio n. 7
0
 public AssetBundleRequest LoadAllAssetAsync()
 {
     return(_assetBundle.LoadAllAssetsAsync());
 }