static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    var gen_ret = new DG.Tweening.TweenParams();
                    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.TweenParams constructor!"));
        }
        static int _m_Clear(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            DG.Tweening.TweenParams __cl_gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1);


            try {
                {
                    DG.Tweening.TweenParams __cl_gen_ret = __cl_gen_to_be_invoked.Clear(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_SetLoops(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Nullable <DG.Tweening.LoopType> >(L, 3))
                {
                    int _loops = LuaAPI.xlua_tointeger(L, 2);
                    System.Nullable <DG.Tweening.LoopType> _loopType; translator.Get(L, 3, out _loopType);

                    var gen_ret = gen_to_be_invoked.SetLoops(_loops, _loopType);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _loops = LuaAPI.xlua_tointeger(L, 2);

                    var gen_ret = gen_to_be_invoked.SetLoops(_loops);
                    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.TweenParams.SetLoops!"));
        }
        static int _m_OnWaypointChange(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            DG.Tweening.TweenParams __cl_gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1);


            try {
                {
                    DG.Tweening.TweenCallback <int> action = translator.GetDelegate <DG.Tweening.TweenCallback <int> >(L, 2);

                    DG.Tweening.TweenParams __cl_gen_ret = __cl_gen_to_be_invoked.OnWaypointChange(action);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_SetSpeedBased(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2);

                    var gen_ret = gen_to_be_invoked.SetSpeedBased(_isSpeedBased);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 1)
                {
                    var gen_ret = gen_to_be_invoked.SetSpeedBased(  );
                    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.TweenParams.SetSpeedBased!"));
        }
Пример #6
0
        static int _m_SetRelative(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DG.Tweening.TweenParams __cl_gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1);


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool isRelative = LuaAPI.lua_toboolean(L, 2);

                    DG.Tweening.TweenParams __cl_gen_ret = __cl_gen_to_be_invoked.SetRelative(isRelative);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 1)
                {
                    DG.Tweening.TweenParams __cl_gen_ret = __cl_gen_to_be_invoked.SetRelative(  );
                    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 DG.Tweening.TweenParams.SetRelative!"));
        }
        static int _m_SetDelay(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    float _delay = (float)LuaAPI.lua_tonumber(L, 2);

                    var gen_ret = gen_to_be_invoked.SetDelay(_delay);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_OnKill(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    DG.Tweening.TweenCallback _action = translator.GetDelegate <DG.Tweening.TweenCallback>(L, 2);

                    var gen_ret = gen_to_be_invoked.OnKill(_action);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_SetTarget(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    object _target = translator.GetObject(L, 2, typeof(object));

                    var gen_ret = gen_to_be_invoked.SetTarget(_target);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_SetEase(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

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

                    var 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);

                    var gen_ret = gen_to_be_invoked.SetEase(_customEase);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && translator.Assignable <DG.Tweening.Ease>(L, 2) && translator.Assignable <System.Nullable <float> >(L, 3) && translator.Assignable <System.Nullable <float> >(L, 4))
                {
                    DG.Tweening.Ease        _ease; translator.Get(L, 2, out _ease);
                    System.Nullable <float> _overshootOrAmplitude; translator.Get(L, 3, out _overshootOrAmplitude);
                    System.Nullable <float> _period; translator.Get(L, 4, out _period);

                    var gen_ret = gen_to_be_invoked.SetEase(_ease, _overshootOrAmplitude, _period);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <DG.Tweening.Ease>(L, 2) && translator.Assignable <System.Nullable <float> >(L, 3))
                {
                    DG.Tweening.Ease        _ease; translator.Get(L, 2, out _ease);
                    System.Nullable <float> _overshootOrAmplitude; translator.Get(L, 3, out _overshootOrAmplitude);

                    var gen_ret = gen_to_be_invoked.SetEase(_ease, _overshootOrAmplitude);
                    translator.Push(L, gen_ret);



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

                    var gen_ret = gen_to_be_invoked.SetEase(_ease);
                    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.TweenParams.SetEase!"));
        }