Esempio n. 1
0
        static int _g_get_AssetName(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                AssetBundles.AssetAsyncLoader gen_to_be_invoked = (AssetBundles.AssetAsyncLoader)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.AssetName);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 2
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _sequence = LuaAPI.xlua_tointeger(L, 2);

                    var gen_ret = new AssetBundles.AssetAsyncLoader(_sequence);
                    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 AssetBundles.AssetAsyncLoader constructor!"));
        }
Esempio n. 3
0
        static int _m_Get_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    AssetBundles.AssetAsyncLoader gen_ret = AssetBundles.AssetAsyncLoader.Get(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 4
0
        static int _m_Recycle_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    AssetBundles.AssetAsyncLoader _creater = (AssetBundles.AssetAsyncLoader)translator.GetObject(L, 1, typeof(AssetBundles.AssetAsyncLoader));

                    AssetBundles.AssetAsyncLoader.Recycle(_creater);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 5
0
        static int _m_Init(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                AssetBundles.AssetAsyncLoader gen_to_be_invoked = (AssetBundles.AssetAsyncLoader)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) && translator.Assignable <UnityEngine.Object>(L, 3) && translator.Assignable <System.Action <UnityEngine.Object> >(L, 4))
                {
                    string             _assetName = LuaAPI.lua_tostring(L, 2);
                    UnityEngine.Object _asset     = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object));
                    System.Action <UnityEngine.Object> _callBack = translator.GetDelegate <System.Action <UnityEngine.Object> >(L, 4);

                    gen_to_be_invoked.Init(_assetName, _asset, _callBack);



                    return(0);
                }
                if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <AssetBundles.BaseAssetBundleAsyncLoader>(L, 3) && translator.Assignable <System.Action <UnityEngine.Object> >(L, 4))
                {
                    string _assetName = LuaAPI.lua_tostring(L, 2);
                    AssetBundles.BaseAssetBundleAsyncLoader _loader   = (AssetBundles.BaseAssetBundleAsyncLoader)translator.GetObject(L, 3, typeof(AssetBundles.BaseAssetBundleAsyncLoader));
                    System.Action <UnityEngine.Object>      _callBack = translator.GetDelegate <System.Action <UnityEngine.Object> >(L, 4);

                    gen_to_be_invoked.Init(_assetName, _loader, _callBack);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to AssetBundles.AssetAsyncLoader.Init!"));
        }
Esempio n. 6
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                AssetBundles.AssetAsyncLoader gen_to_be_invoked = (AssetBundles.AssetAsyncLoader)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));
            }
        }
Esempio n. 7
0
        static int _m_Progress(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                AssetBundles.AssetAsyncLoader gen_to_be_invoked = (AssetBundles.AssetAsyncLoader)translator.FastGetCSObj(L, 1);



                {
                    var gen_ret = gen_to_be_invoked.Progress(  );
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }