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

                FairyGUI.SwipeGesture gen_to_be_invoked = (FairyGUI.SwipeGesture)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.snapping = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
コード例 #2
0
        static int _g_get_actionDistance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.SwipeGesture gen_to_be_invoked = (FairyGUI.SwipeGesture)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.actionDistance);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
コード例 #3
0
        static int _g_get_delta(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.SwipeGesture gen_to_be_invoked = (FairyGUI.SwipeGesture)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector2(L, gen_to_be_invoked.delta);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
コード例 #4
0
        static int _s_set_delta(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.SwipeGesture gen_to_be_invoked = (FairyGUI.SwipeGesture)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector2   gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.delta = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
コード例 #5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <FairyGUI.GObject>(L, 2))
                {
                    FairyGUI.GObject _host = (FairyGUI.GObject)translator.GetObject(L, 2, typeof(FairyGUI.GObject));

                    FairyGUI.SwipeGesture gen_ret = new FairyGUI.SwipeGesture(_host);
                    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 FairyGUI.SwipeGesture constructor!"));
        }
コード例 #6
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.SwipeGesture gen_to_be_invoked = (FairyGUI.SwipeGesture)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Dispose(  );



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