コード例 #1
0
        static int _s_set_OnClickFunc(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.VoiceControlComponent __cl_gen_to_be_invoked = (xc.VoiceControlComponent)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.OnClickFunc = translator.GetDelegate <xc.VoiceControlComponent.OnClickDelegate>(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #2
0
        static int _s_set_Intevel(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.VoiceControlComponent __cl_gen_to_be_invoked = (xc.VoiceControlComponent)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Intevel = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #3
0
        static int _g_get_RecordMinTime(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.VoiceControlComponent __cl_gen_to_be_invoked = (xc.VoiceControlComponent)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.RecordMinTime);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
コード例 #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.VoiceControlComponent __cl_gen_ret = new xc.VoiceControlComponent();
                    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 xc.VoiceControlComponent constructor!"));
        }
コード例 #5
0
        static int _m_Start(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.VoiceControlComponent __cl_gen_to_be_invoked = (xc.VoiceControlComponent)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.Start(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #6
0
        static int _m_OnApplicationPause(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.VoiceControlComponent __cl_gen_to_be_invoked = (xc.VoiceControlComponent)translator.FastGetCSObj(L, 1);


            try {
                {
                    bool pauseStatus = LuaAPI.lua_toboolean(L, 2);

                    __cl_gen_to_be_invoked.OnApplicationPause(pauseStatus);



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


            xc.VoiceControlComponent __cl_gen_to_be_invoked = (xc.VoiceControlComponent)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.EventSystems.PointerEventData eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));

                    __cl_gen_to_be_invoked.OnPointerExit(eventData);



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