Ejemplo n.º 1
0
        static int _e_TouchStateEvent(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                int gen_param_count         = LuaAPI.lua_gettop(L);
                Othink.ArboxCallCs.SimpleTouchController gen_to_be_invoked = (Othink.ArboxCallCs.SimpleTouchController)translator.FastGetCSObj(L, 1);
                Othink.ArboxCallCs.SimpleTouchController.TouchStateDelegate gen_delegate = translator.GetDelegate <Othink.ArboxCallCs.SimpleTouchController.TouchStateDelegate>(L, 3);
                if (gen_delegate == null)
                {
                    return(LuaAPI.luaL_error(L, "#3 need Othink.ArboxCallCs.SimpleTouchController.TouchStateDelegate!"));
                }

                if (gen_param_count == 3)
                {
                    if (LuaAPI.xlua_is_eq_str(L, 2, "+"))
                    {
                        gen_to_be_invoked.TouchStateEvent += gen_delegate;
                        return(0);
                    }


                    if (LuaAPI.xlua_is_eq_str(L, 2, "-"))
                    {
                        gen_to_be_invoked.TouchStateEvent -= gen_delegate;
                        return(0);
                    }
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            LuaAPI.luaL_error(L, "invalid arguments to Othink.ArboxCallCs.SimpleTouchController.TouchStateEvent!");
            return(0);
        }
Ejemplo n.º 2
0
        static int _g_get_GetTouchPosition(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Othink.ArboxCallCs.SimpleTouchController gen_to_be_invoked = (Othink.ArboxCallCs.SimpleTouchController)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector2(L, gen_to_be_invoked.GetTouchPosition);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Ejemplo n.º 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Othink.ArboxCallCs.SimpleTouchController gen_ret = new Othink.ArboxCallCs.SimpleTouchController();
                    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 Othink.ArboxCallCs.SimpleTouchController constructor!"));
        }
Ejemplo n.º 4
0
        static int _m_EndDrag(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Othink.ArboxCallCs.SimpleTouchController gen_to_be_invoked = (Othink.ArboxCallCs.SimpleTouchController)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.EndDrag(  );



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


                Othink.ArboxCallCs.SimpleTouchController gen_to_be_invoked = (Othink.ArboxCallCs.SimpleTouchController)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector2 _value; translator.Get(L, 2, out _value);

                    gen_to_be_invoked.OnValueChanged(_value);



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