Example #1
0
        public void __Gen_Delegate_Imp12(Game.DlgView p0)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int err_func   = LuaAPI.load_error_func(L, errorFuncRef);
            ObjectTranslator translator = luaEnv.translator;

            LuaAPI.lua_getref(L, luaReference);

            translator.Push(L, p0);

            int __gen_error = LuaAPI.lua_pcall(L, 1, 0, err_func);
            if (__gen_error != 0)
            {
                luaEnv.ThrowExceptionFromError(err_func - 1);
            }



            LuaAPI.lua_settop(L, err_func - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Example #2
0
        static int _g_get_injector(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Game.DlgView __cl_gen_to_be_invoked = (Game.DlgView)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.injector);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Example #3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string res = LuaAPI.lua_tostring(L, 2);

                    Game.DlgView __cl_gen_ret = new Game.DlgView(res);
                    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 Game.DlgView constructor!"));
        }
Example #4
0
        static int _m_Release(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Game.DlgView __cl_gen_to_be_invoked = (Game.DlgView)translator.FastGetCSObj(L, 1);



                {
                    __cl_gen_to_be_invoked.Release(  );



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


                Game.DlgView __cl_gen_to_be_invoked = (Game.DlgView)translator.FastGetCSObj(L, 1);



                {
                    int __cl_gen_ret = __cl_gen_to_be_invoked.GetSlibingIndex(  );
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



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


                Game.DlgView __cl_gen_to_be_invoked = (Game.DlgView)translator.FastGetCSObj(L, 1);



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

                    __cl_gen_to_be_invoked.Load(onLoaded);



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


                Game.DlgView __cl_gen_to_be_invoked = (Game.DlgView)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Transform root = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));

                    __cl_gen_to_be_invoked.SetRoot(root);



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


                Game.DlgView __cl_gen_to_be_invoked = (Game.DlgView)translator.FastGetCSObj(L, 1);



                {
                    System.Type type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    UnityEngine.Component __cl_gen_ret = __cl_gen_to_be_invoked.GetComponent(type);
                    translator.Push(L, __cl_gen_ret);



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