static int _m_PrepareNetAssets(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Framework.NetAsset.NetAssetService __cl_gen_to_be_invoked = (JW.Framework.NetAsset.NetAssetService)translator.FastGetCSObj(L, 1);



                {
                    XLua.LuaTable         prepareUrls    = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable));
                    System.Action <float> progresHandler = translator.GetDelegate <System.Action <float> >(L, 3);

                    uint __cl_gen_ret = __cl_gen_to_be_invoked.PrepareNetAssets(prepareUrls, progresHandler);
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_AddCachedNetImage(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Framework.NetAsset.NetAssetService __cl_gen_to_be_invoked = (JW.Framework.NetAsset.NetAssetService)translator.FastGetCSObj(L, 1);



                {
                    string url    = LuaAPI.lua_tostring(L, 2);
                    int    width  = LuaAPI.xlua_tointeger(L, 3);
                    int    height = LuaAPI.xlua_tointeger(L, 4);
                    byte[] data   = LuaAPI.lua_tobytes(L, 5);

                    __cl_gen_to_be_invoked.AddCachedNetImage(url, width, height, data);



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


                JW.Framework.NetAsset.NetAssetService __cl_gen_to_be_invoked = (JW.Framework.NetAsset.NetAssetService)translator.FastGetCSObj(L, 1);


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    string url       = LuaAPI.lua_tostring(L, 2);
                    float  validDays = (float)LuaAPI.lua_tonumber(L, 3);
                    int    width     = LuaAPI.xlua_tointeger(L, 4);
                    int    height    = LuaAPI.xlua_tointeger(L, 5);

                    UnityEngine.Texture2D __cl_gen_ret = __cl_gen_to_be_invoked.GetCachedNetImage(url, validDays, width, height);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    string url       = LuaAPI.lua_tostring(L, 2);
                    float  validDays = (float)LuaAPI.lua_tonumber(L, 3);
                    int    width     = LuaAPI.xlua_tointeger(L, 4);

                    UnityEngine.Texture2D __cl_gen_ret = __cl_gen_to_be_invoked.GetCachedNetImage(url, validDays, width);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    string url       = LuaAPI.lua_tostring(L, 2);
                    float  validDays = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.Texture2D __cl_gen_ret = __cl_gen_to_be_invoked.GetCachedNetImage(url, validDays);
                    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 JW.Framework.NetAsset.NetAssetService.GetCachedNetImage!"));
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    JW.Framework.NetAsset.NetAssetService __cl_gen_ret = new JW.Framework.NetAsset.NetAssetService();
                    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 JW.Framework.NetAsset.NetAssetService constructor!"));
        }
コード例 #5
0
        static int _m_GetNetAssetService_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    JW.Framework.NetAsset.NetAssetService __cl_gen_ret = JW.Lua.LuaInteraction.GetNetAssetService(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_Uninitialize(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Framework.NetAsset.NetAssetService __cl_gen_to_be_invoked = (JW.Framework.NetAsset.NetAssetService)translator.FastGetCSObj(L, 1);



                {
                    __cl_gen_to_be_invoked.Uninitialize(  );



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


                JW.Framework.NetAsset.NetAssetService __cl_gen_to_be_invoked = (JW.Framework.NetAsset.NetAssetService)translator.FastGetCSObj(L, 1);



                {
                    string key = LuaAPI.lua_tostring(L, 2);

                    __cl_gen_to_be_invoked.AddCachedNetAssetInfoDirect(key);



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


                JW.Framework.NetAsset.NetAssetService __cl_gen_to_be_invoked = (JW.Framework.NetAsset.NetAssetService)translator.FastGetCSObj(L, 1);



                {
                    string url = LuaAPI.lua_tostring(L, 2);

                    JW.Framework.NetAsset.NetAssetInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetCachedNetAssetInfoByUrl(url);
                    translator.Push(L, __cl_gen_ret);



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