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

                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.LuaGCHook = translator.GetDelegate <System.Action <bool> >(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _m_LoadAudioAsset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)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_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING))
                {
                    string filename = LuaAPI.lua_tostring(L, 2);
                    int    lifeType = LuaAPI.xlua_tointeger(L, 3);
                    string fileExt  = LuaAPI.lua_tostring(L, 4);

                    JW.Framework.Asset.AudioAsset __cl_gen_ret = __cl_gen_to_be_invoked.LoadAudioAsset(filename, lifeType, fileExt);
                    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 filename = LuaAPI.lua_tostring(L, 2);
                    int    lifeType = LuaAPI.xlua_tointeger(L, 3);

                    JW.Framework.Asset.AudioAsset __cl_gen_ret = __cl_gen_to_be_invoked.LoadAudioAsset(filename, lifeType);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string filename = LuaAPI.lua_tostring(L, 2);

                    JW.Framework.Asset.AudioAsset __cl_gen_ret = __cl_gen_to_be_invoked.LoadAudioAsset(filename);
                    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.Asset.AssetService.LoadAudioAsset!"));
        }
        static int _g_get_LuaGCHook(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.LuaGCHook);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    JW.Framework.Asset.AssetService __cl_gen_ret = new JW.Framework.Asset.AssetService();
                    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.Asset.AssetService constructor!"));
        }
        static int _m_LoadAsyn(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7))
                {
                    int    type         = LuaAPI.xlua_tointeger(L, 2);
                    int    loadPriority = LuaAPI.xlua_tointeger(L, 3);
                    string filename     = LuaAPI.lua_tostring(L, 4);
                    int    life         = LuaAPI.xlua_tointeger(L, 5);
                    JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 6, typeof(JW.Framework.Asset.IAssetLoadCallback));
                    int cnt = LuaAPI.xlua_tointeger(L, 7);

                    __cl_gen_to_be_invoked.LoadAsyn(type, loadPriority, filename, life, callback, cnt);



                    return(0);
                }
                if (__gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 6))
                {
                    int    type         = LuaAPI.xlua_tointeger(L, 2);
                    int    loadPriority = LuaAPI.xlua_tointeger(L, 3);
                    string filename     = LuaAPI.lua_tostring(L, 4);
                    int    life         = LuaAPI.xlua_tointeger(L, 5);
                    JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 6, typeof(JW.Framework.Asset.IAssetLoadCallback));

                    __cl_gen_to_be_invoked.LoadAsyn(type, loadPriority, filename, life, 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 JW.Framework.Asset.AssetService.LoadAsyn!"));
        }
        static int _m_GetAssetService_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    JW.Framework.Asset.AssetService __cl_gen_ret = JW.Lua.LuaInteraction.GetAssetService(  );
                    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_UnloadAllUsingAssets(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);



                {
                    __cl_gen_to_be_invoked.UnloadAllUsingAssets(  );



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


                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);



                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.Initialize(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);



                {
                    JW.Framework.Asset.AssetManager __cl_gen_ret = __cl_gen_to_be_invoked.GetAssetManager(  );
                    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_CancelAsyn(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 3 && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 2, typeof(JW.Framework.Asset.IAssetLoadCallback));
                    string assetName = LuaAPI.lua_tostring(L, 3);

                    __cl_gen_to_be_invoked.CancelAsyn(callback, assetName);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 2))
                {
                    JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 2, typeof(JW.Framework.Asset.IAssetLoadCallback));

                    __cl_gen_to_be_invoked.CancelAsyn(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 JW.Framework.Asset.AssetService.CancelAsyn!"));
        }
        static int _m_ClearUIStateCache(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);



                {
                    JW.Common.JWArrayList <string> uiStateHistory = (JW.Common.JWArrayList <string>)translator.GetObject(L, 2, typeof(JW.Common.JWArrayList <string>));

                    __cl_gen_to_be_invoked.ClearUIStateCache(uiStateHistory);



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


                JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1);



                {
                    System.Action <bool> allCompletedCallback = translator.GetDelegate <System.Action <bool> >(L, 2);

                    __cl_gen_to_be_invoked.StartPreloadAfterResident(allCompletedCallback);



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