Exemple #1
0
        static int _m_MapAssetPath(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    string _assetPath = LuaAPI.lua_tostring(L, 2);
                    string _assetbundleName;
                    string _assetName;

                    bool gen_ret = gen_to_be_invoked.MapAssetPath(_assetPath, out _assetbundleName, out _assetName);
                    LuaAPI.lua_pushboolean(L, gen_ret);
                    LuaAPI.lua_pushstring(L, _assetbundleName);

                    LuaAPI.lua_pushstring(L, _assetName);



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

                AssetBundles.AssetsPathMapping gen_to_be_invoked = (AssetBundles.AssetsPathMapping)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);
        }
Exemple #3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    AssetBundles.AssetsPathMapping gen_ret = new AssetBundles.AssetsPathMapping();
                    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.AssetsPathMapping constructor!"));
        }
Exemple #4
0
        static int _m_Initialize(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

                    gen_to_be_invoked.Initialize(_content);



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


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



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

                    System.Collections.Generic.List <string> gen_ret = gen_to_be_invoked.GetAllAssetNames(_assetbundleName);
                    translator.Push(L, gen_ret);



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