Esempio n. 1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    libx.Assets gen_ret = new libx.Assets();
                    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 libx.Assets constructor!"));
        }
Esempio n. 2
0
        static int _m_GetAllBundleAssetPaths(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                libx.Assets gen_to_be_invoked = (libx.Assets)translator.FastGetCSObj(L, 1);



                {
                    System.Collections.Generic.IEnumerator <string> gen_ret = gen_to_be_invoked.GetAllBundleAssetPaths(  );
                    translator.PushAny(L, gen_ret);



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