Пример #1
0
        static int _s_set_callbackFunName(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ZhuYuU3d.LuaEventCallBack __cl_gen_to_be_invoked = (ZhuYuU3d.LuaEventCallBack)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.callbackFunName = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Пример #2
0
        static int _g_get_curEventTriggerType(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ZhuYuU3d.LuaEventCallBack __cl_gen_to_be_invoked = (ZhuYuU3d.LuaEventCallBack)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineEventSystemsEventTriggerType(L, __cl_gen_to_be_invoked.curEventTriggerType);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Пример #3
0
        static int _s_set_curEventTriggerType(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ZhuYuU3d.LuaEventCallBack __cl_gen_to_be_invoked = (ZhuYuU3d.LuaEventCallBack)translator.FastGetCSObj(L, 1);
                UnityEngine.EventSystems.EventTriggerType __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.curEventTriggerType = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Пример #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    ZhuYuU3d.LuaEventCallBack __cl_gen_ret = new ZhuYuU3d.LuaEventCallBack();
                    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 ZhuYuU3d.LuaEventCallBack constructor!"));
        }
Пример #5
0
        static int _m_Init(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ZhuYuU3d.LuaEventCallBack __cl_gen_to_be_invoked = (ZhuYuU3d.LuaEventCallBack)translator.FastGetCSObj(L, 1);



                {
                    __cl_gen_to_be_invoked.Init(  );



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


                ZhuYuU3d.LuaEventCallBack __cl_gen_to_be_invoked = (ZhuYuU3d.LuaEventCallBack)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.EventSystems.EventTriggerType eventTriggerType; translator.Get(L, 2, out eventTriggerType);
                    OnEvent callback = translator.GetDelegate <OnEvent>(L, 3);

                    __cl_gen_to_be_invoked.AddEvent(eventTriggerType, callback);



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