static int SetEase(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, DG.Tweening.EaseFunction>(L, 1))
            {
                DG.Tweening.Tweener      obj  = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                DG.Tweening.EaseFunction arg0 = (DG.Tweening.EaseFunction)ToLua.ToObject(L, 2);
                DG.Tweening.Tween        o    = obj.SetEase(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, UnityEngine.AnimationCurve>(L, 1))
            {
                DG.Tweening.Tweener        obj  = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                UnityEngine.AnimationCurve arg0 = (UnityEngine.AnimationCurve)ToLua.ToObject(L, 2);
                DG.Tweening.Tween          o    = obj.SetEase(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, DG.Tweening.Ease>(L, 1))
            {
                DG.Tweening.Tweener obj  = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                DG.Tweening.Ease    arg0 = (DG.Tweening.Ease)ToLua.ToObject(L, 2);
                DG.Tweening.Tween   o    = obj.SetEase(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3)
            {
                DG.Tweening.Tweener obj  = (DG.Tweening.Tweener)ToLua.CheckObject <DG.Tweening.Tweener>(L, 1);
                DG.Tweening.Ease    arg0 = (DG.Tweening.Ease)ToLua.CheckObject(L, 2, typeof(DG.Tweening.Ease));
                float             arg1   = (float)LuaDLL.luaL_checknumber(L, 3);
                DG.Tweening.Tween o      = obj.SetEase(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 4)
            {
                DG.Tweening.Tweener obj  = (DG.Tweening.Tweener)ToLua.CheckObject <DG.Tweening.Tweener>(L, 1);
                DG.Tweening.Ease    arg0 = (DG.Tweening.Ease)ToLua.CheckObject(L, 2, typeof(DG.Tweening.Ease));
                float             arg1   = (float)LuaDLL.luaL_checknumber(L, 3);
                float             arg2   = (float)LuaDLL.luaL_checknumber(L, 4);
                DG.Tweening.Tween o      = obj.SetEase(arg0, arg1, arg2);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tweener.SetEase"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
예제 #2
0
 static int QPYX_SetEase_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, DG.Tweening.Ease>(L_YXQP, 1))
         {
             DG.Tweening.Tweener QPYX_obj_YXQP  = (DG.Tweening.Tweener)ToLua.ToObject(L_YXQP, 1);
             DG.Tweening.Ease    QPYX_arg0_YXQP = (DG.Tweening.Ease)ToLua.ToObject(L_YXQP, 2);
             DG.Tweening.Tween   QPYX_o_YXQP    = QPYX_obj_YXQP.SetEase(QPYX_arg0_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, UnityEngine.AnimationCurve>(L_YXQP, 1))
         {
             DG.Tweening.Tweener        QPYX_obj_YXQP  = (DG.Tweening.Tweener)ToLua.ToObject(L_YXQP, 1);
             UnityEngine.AnimationCurve QPYX_arg0_YXQP = (UnityEngine.AnimationCurve)ToLua.ToObject(L_YXQP, 2);
             DG.Tweening.Tween          QPYX_o_YXQP    = QPYX_obj_YXQP.SetEase(QPYX_arg0_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, DG.Tweening.EaseFunction>(L_YXQP, 1))
         {
             DG.Tweening.Tweener      QPYX_obj_YXQP  = (DG.Tweening.Tweener)ToLua.ToObject(L_YXQP, 1);
             DG.Tweening.EaseFunction QPYX_arg0_YXQP = (DG.Tweening.EaseFunction)ToLua.ToObject(L_YXQP, 2);
             DG.Tweening.Tween        QPYX_o_YXQP    = QPYX_obj_YXQP.SetEase(QPYX_arg0_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 3)
         {
             DG.Tweening.Tweener QPYX_obj_YXQP  = (DG.Tweening.Tweener)ToLua.CheckObject <DG.Tweening.Tweener>(L_YXQP, 1);
             DG.Tweening.Ease    QPYX_arg0_YXQP = (DG.Tweening.Ease)ToLua.CheckObject(L_YXQP, 2, typeof(DG.Tweening.Ease));
             float             QPYX_arg1_YXQP   = (float)LuaDLL.luaL_checknumber(L_YXQP, 3);
             DG.Tweening.Tween QPYX_o_YXQP      = QPYX_obj_YXQP.SetEase(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 4)
         {
             DG.Tweening.Tweener QPYX_obj_YXQP  = (DG.Tweening.Tweener)ToLua.CheckObject <DG.Tweening.Tweener>(L_YXQP, 1);
             DG.Tweening.Ease    QPYX_arg0_YXQP = (DG.Tweening.Ease)ToLua.CheckObject(L_YXQP, 2, typeof(DG.Tweening.Ease));
             float             QPYX_arg1_YXQP   = (float)LuaDLL.luaL_checknumber(L_YXQP, 3);
             float             QPYX_arg2_YXQP   = (float)LuaDLL.luaL_checknumber(L_YXQP, 4);
             DG.Tweening.Tween QPYX_o_YXQP      = QPYX_obj_YXQP.SetEase(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: DG.Tweening.Tweener.SetEase"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
    static bool TweenParams_SetEase__EaseFunction(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 1)
        {
            DG.Tweening.EaseFunction arg0 = JSDataExchangeMgr.GetJSArg <DG.Tweening.EaseFunction>(() =>
            {
                if (JSApi.isFunctionS((int)JSApi.GetType.Arg))
                {
                    return(TweenParams_SetEase_GetDelegate_member13_arg0(JSApi.getFunctionS((int)JSApi.GetType.Arg)));
                }
                else
                {
                    return((DG.Tweening.EaseFunction)JSMgr.datax.getObject((int)JSApi.GetType.Arg));
                }
            });
            JSMgr.datax.setObject((int)JSApi.SetType.Rval, ((DG.Tweening.TweenParams)vc.csObj).SetEase(arg0));
        }

        return(true);
    }
    static bool EaseFactory_StopMotion__Int32__EaseFunction(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 2)
        {
            System.Int32             arg0 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            DG.Tweening.EaseFunction arg1 = JSDataExchangeMgr.GetJSArg <DG.Tweening.EaseFunction>(() =>
            {
                if (JSApi.isFunctionS((int)JSApi.GetType.Arg))
                {
                    return(EaseFactory_StopMotion_GetDelegate_member0_arg1(JSApi.getFunctionS((int)JSApi.GetType.Arg)));
                }
                else
                {
                    return((DG.Tweening.EaseFunction)JSMgr.datax.getObject((int)JSApi.GetType.Arg));
                }
            });
            JSMgr.datax.setObject((int)JSApi.SetType.Rval, DG.Tweening.EaseFactory.StopMotion(arg0, arg1));
        }

        return(true);
    }
예제 #5
0
        static int _m_SetEase(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <DG.Tweening.Ease>(L, 2))
                {
                    DG.Tweening.Ease _ease; translator.Get(L, 2, out _ease);

                    DG.Tweening.Tween gen_ret = gen_to_be_invoked.SetEase(_ease);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.AnimationCurve>(L, 2))
                {
                    UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve));

                    DG.Tweening.Tween gen_ret = gen_to_be_invoked.SetEase(_animCurve);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <DG.Tweening.EaseFunction>(L, 2))
                {
                    DG.Tweening.EaseFunction _customEase = translator.GetDelegate <DG.Tweening.EaseFunction>(L, 2);

                    DG.Tweening.Tween gen_ret = gen_to_be_invoked.SetEase(_customEase);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <DG.Tweening.Ease>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    DG.Tweening.Ease _ease; translator.Get(L, 2, out _ease);
                    float            _overshoot = (float)LuaAPI.lua_tonumber(L, 3);

                    DG.Tweening.Tween gen_ret = gen_to_be_invoked.SetEase(_ease, _overshoot);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && translator.Assignable <DG.Tweening.Ease>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    DG.Tweening.Ease _ease; translator.Get(L, 2, out _ease);
                    float            _amplitude = (float)LuaAPI.lua_tonumber(L, 3);
                    float            _period    = (float)LuaAPI.lua_tonumber(L, 4);

                    DG.Tweening.Tween gen_ret = gen_to_be_invoked.SetEase(_ease, _amplitude, _period);
                    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 DG.Tweening.Tweener.SetEase!"));
        }
예제 #6
0
    static int SetEase(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 2 && LuaScriptMgr.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(DG.Tweening.EaseFunction)))
        {
            DG.Tweening.Tween        obj  = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
            DG.Tweening.EaseFunction arg0 = null;
            LuaTypes funcType2            = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (DG.Tweening.EaseFunction)LuaScriptMgr.GetLuaObject(L, 2);
            }
            else
            {
                LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 2);
                arg0 = (param0, param1, param2, param3) =>
                {
                    int top = func.BeginPCall();
                    LuaScriptMgr.Push(L, param0);
                    LuaScriptMgr.Push(L, param1);
                    LuaScriptMgr.Push(L, param2);
                    LuaScriptMgr.Push(L, param3);
                    func.PCall(top, 4);
                    object[] objs = func.PopValues(top);
                    func.EndPCall(top);
                    return((float)objs[0]);
                };
            }

            DG.Tweening.Tween o = obj.SetEase(arg0);
            LuaScriptMgr.PushObject(L, o);
            return(1);
        }
        else if (count == 2 && LuaScriptMgr.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(AnimationCurve)))
        {
            DG.Tweening.Tween obj  = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
            AnimationCurve    arg0 = (AnimationCurve)LuaScriptMgr.GetLuaObject(L, 2);
            DG.Tweening.Tween o    = obj.SetEase(arg0);
            LuaScriptMgr.PushObject(L, o);
            return(1);
        }
        else if (count == 2 && LuaScriptMgr.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(DG.Tweening.Ease)))
        {
            DG.Tweening.Tween obj  = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
            DG.Tweening.Ease  arg0 = (DG.Tweening.Ease)LuaScriptMgr.GetLuaObject(L, 2);
            DG.Tweening.Tween o    = obj.SetEase(arg0);
            LuaScriptMgr.PushObject(L, o);
            return(1);
        }
        else if (count == 3)
        {
            DG.Tweening.Tween obj  = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
            DG.Tweening.Ease  arg0 = (DG.Tweening.Ease)LuaScriptMgr.GetNetObject(L, 2, typeof(DG.Tweening.Ease));
            float             arg1 = (float)LuaScriptMgr.GetNumber(L, 3);
            DG.Tweening.Tween o    = obj.SetEase(arg0, arg1);
            LuaScriptMgr.PushObject(L, o);
            return(1);
        }
        else if (count == 4)
        {
            DG.Tweening.Tween obj  = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
            DG.Tweening.Ease  arg0 = (DG.Tweening.Ease)LuaScriptMgr.GetNetObject(L, 2, typeof(DG.Tweening.Ease));
            float             arg1 = (float)LuaScriptMgr.GetNumber(L, 3);
            float             arg2 = (float)LuaScriptMgr.GetNumber(L, 4);
            DG.Tweening.Tween o    = obj.SetEase(arg0, arg1, arg2);
            LuaScriptMgr.PushObject(L, o);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: DG.Tweening.Tween.SetEase");
        }

        return(0);
    }
    static int SetEase(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(DG.Tweening.Ease)))
            {
                DG.Tweening.Tweener obj  = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                DG.Tweening.Ease    arg0 = (DG.Tweening.Ease)ToLua.ToObject(L, 2);
                DG.Tweening.Tween   o    = obj.SetEase(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(UnityEngine.AnimationCurve)))
            {
                DG.Tweening.Tweener        obj  = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                UnityEngine.AnimationCurve arg0 = (UnityEngine.AnimationCurve)ToLua.ToObject(L, 2);
                DG.Tweening.Tween          o    = obj.SetEase(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(DG.Tweening.EaseFunction)))
            {
                DG.Tweening.Tweener      obj  = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                DG.Tweening.EaseFunction arg0 = null;
                LuaTypes funcType2            = LuaDLL.lua_type(L, 2);

                if (funcType2 != LuaTypes.LUA_TFUNCTION)
                {
                    arg0 = (DG.Tweening.EaseFunction)ToLua.ToObject(L, 2);
                }
                else
                {
                    LuaFunction func = ToLua.ToLuaFunction(L, 2);
                    arg0 = DelegateFactory.CreateDelegate(typeof(DG.Tweening.EaseFunction), func) as DG.Tweening.EaseFunction;
                }

                DG.Tweening.Tween o = obj.SetEase(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(DG.Tweening.Ease), typeof(float)))
            {
                DG.Tweening.Tweener obj  = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                DG.Tweening.Ease    arg0 = (DG.Tweening.Ease)ToLua.ToObject(L, 2);
                float             arg1   = (float)LuaDLL.lua_tonumber(L, 3);
                DG.Tweening.Tween o      = obj.SetEase(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(DG.Tweening.Ease), typeof(float), typeof(float)))
            {
                DG.Tweening.Tweener obj  = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                DG.Tweening.Ease    arg0 = (DG.Tweening.Ease)ToLua.ToObject(L, 2);
                float             arg1   = (float)LuaDLL.lua_tonumber(L, 3);
                float             arg2   = (float)LuaDLL.lua_tonumber(L, 4);
                DG.Tweening.Tween o      = obj.SetEase(arg0, arg1, arg2);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tweener.SetEase"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }