static int OnWaypointChange(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            ToLua_DG_Tweening_Tween         obj  = (ToLua_DG_Tweening_Tween)ToLua.CheckObject(L, 1, typeof(ToLua_DG_Tweening_Tween));
            DG.Tweening.TweenCallback <int> arg0 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (DG.Tweening.TweenCallback <int>)ToLua.CheckObject(L, 2, typeof(DG.Tweening.TweenCallback <int>));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(DG.Tweening.TweenCallback <int>), func) as DG.Tweening.TweenCallback <int>;
            }

            DG.Tweening.Tween o = obj.OnWaypointChange(arg0);
            ToLua.PushObject(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int SetAutoKill(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(ToLua_DG_Tweening_Tween)))
            {
                ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.ToObject(L, 1);
                DG.Tweening.Tween       o   = obj.SetAutoKill();
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(ToLua_DG_Tweening_Tween), typeof(bool)))
            {
                ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.ToObject(L, 1);
                bool arg0           = LuaDLL.lua_toboolean(L, 2);
                DG.Tweening.Tween o = obj.SetAutoKill(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: ToLua_DG_Tweening_Tween.SetAutoKill"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int SetLoops(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(ToLua_DG_Tweening_Tween), typeof(int)))
            {
                ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.ToObject(L, 1);
                int arg0            = (int)LuaDLL.lua_tonumber(L, 2);
                DG.Tweening.Tween o = obj.SetLoops(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(ToLua_DG_Tweening_Tween), typeof(int), typeof(DG.Tweening.LoopType)))
            {
                ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.ToObject(L, 1);
                int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                DG.Tweening.LoopType arg1 = (DG.Tweening.LoopType)ToLua.ToObject(L, 3);
                DG.Tweening.Tween    o    = obj.SetLoops(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: ToLua_DG_Tweening_Tween.SetLoops"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int PlayBackwards(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
     DG.Tweening.TweenExtensions.PlayBackwards(arg0);
     return(0);
 }
示例#5
0
    static int OnTweenCompleted(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(LuaInterface.LuaFunction)))
            {
                DG.Tweening.Tween arg0 = (DG.Tweening.Tween)ToLua.ToObject(L, 1);
                LuaFunction       arg1 = ToLua.ToLuaFunction(L, 2);
                TweenUtils.OnTweenCompleted(arg0, arg1);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tween), typeof(LuaInterface.LuaFunction), typeof(object)))
            {
                DG.Tweening.Tween arg0 = (DG.Tweening.Tween)ToLua.ToObject(L, 1);
                LuaFunction       arg1 = ToLua.ToLuaFunction(L, 2);
                object            arg2 = ToLua.ToVarObject(L, 3);
                TweenUtils.OnTweenCompleted(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: TweenUtils.OnTweenCompleted"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int SmoothRewind(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
     DG.Tweening.TweenExtensions.SmoothRewind(arg0);
     return(0);
 }
 static int ForceInit(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
     DG.Tweening.TweenExtensions.ForceInit(arg0);
     return(0);
 }
    static int DelayedCall(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
            DG.Tweening.TweenCallback arg1 = null;
            LuaTypes funcType2             = LuaDLL.lua_type(L, 2);

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

            bool arg2           = LuaDLL.luaL_checkboolean(L, 3);
            DG.Tweening.Tween o = DG.Tweening.DOVirtual.DelayedCall(arg0, arg1, arg2);
            ToLua.PushObject(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
示例#9
0
    static int DelayedCall(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
                DG.Tweening.TweenCallback arg1 = (DG.Tweening.TweenCallback)ToLua.CheckDelegate <DG.Tweening.TweenCallback>(L, 2);
                DG.Tweening.Tween         o    = DG.Tweening.DOVirtual.DelayedCall(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3)
            {
                float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
                DG.Tweening.TweenCallback arg1 = (DG.Tweening.TweenCallback)ToLua.CheckDelegate <DG.Tweening.TweenCallback>(L, 2);
                bool arg2           = LuaDLL.luaL_checkboolean(L, 3);
                DG.Tweening.Tween o = DG.Tweening.DOVirtual.DelayedCall(arg0, arg1, arg2);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.DOVirtual.DelayedCall"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int PauseTween(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
     DG.Tweening.Tween o    = DOTweenLuaUtils.PauseTween(arg0);
     LuaScriptMgr.PushObject(L, o);
     return(1);
 }
    static int CompletedLoops(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        int o = DG.Tweening.TweenExtensions.CompletedLoops(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
    static int ElapsedDirectionalPercentage(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        float             o    = DG.Tweening.TweenExtensions.ElapsedDirectionalPercentage(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
 static int Join(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 2);
     DG.Tweening.Sequence arg0 = (DG.Tweening.Sequence)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Sequence));
     DG.Tweening.Tween    arg1 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 2, typeof(DG.Tweening.Tween));
     DG.Tweening.Sequence o    = DG.Tweening.TweenSettingsExtensions.Join(arg0, arg1);
     LuaScriptMgr.PushObject(L, o);
     return(1);
 }
    static int IsPlaying(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        bool o = DG.Tweening.TweenExtensions.IsPlaying(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
    static int PathLength(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        float             o    = DG.Tweening.TweenExtensions.PathLength(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
    static int Complete(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        bool arg1 = LuaScriptMgr.GetBoolean(L, 2);

        DG.Tweening.TweenExtensions.Complete(arg0, arg1);
        return(0);
    }
    static int WaitForStart(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        Coroutine         o    = DG.Tweening.TweenExtensions.WaitForStart(arg0);

        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
    static int WaitForKill(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        YieldInstruction  o    = DG.Tweening.TweenExtensions.WaitForKill(arg0);

        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
    static int WaitForPosition(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        float             arg1 = (float)LuaScriptMgr.GetNumber(L, 2);
        YieldInstruction  o    = DG.Tweening.TweenExtensions.WaitForPosition(arg0, arg1);

        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
    static int Goto(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        float             arg1 = (float)LuaScriptMgr.GetNumber(L, 2);
        bool arg2 = LuaScriptMgr.GetBoolean(L, 3);

        DG.Tweening.TweenExtensions.Goto(arg0, arg1, arg2);
        return(0);
    }
    static int PathGetDrawPoints(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        int arg1 = (int)LuaScriptMgr.GetNumber(L, 2);

        Vector3[] o = DG.Tweening.TweenExtensions.PathGetDrawPoints(arg0, arg1);
        LuaScriptMgr.PushArray(L, o);
        return(1);
    }
    static int PathGetPoint(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        float             arg1 = (float)LuaScriptMgr.GetNumber(L, 2);
        Vector3           o    = DG.Tweening.TweenExtensions.PathGetPoint(arg0, arg1);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
    static int ElapsedPercentage(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween arg0 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Tween));
        bool  arg1             = LuaScriptMgr.GetBoolean(L, 2);
        float o = DG.Tweening.TweenExtensions.ElapsedPercentage(arg0, arg1);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
    static int Insert(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        DG.Tweening.Sequence arg0 = (DG.Tweening.Sequence)LuaScriptMgr.GetNetObject(L, 1, typeof(DG.Tweening.Sequence));
        float arg1 = (float)LuaScriptMgr.GetNumber(L, 2);

        DG.Tweening.Tween    arg2 = (DG.Tweening.Tween)LuaScriptMgr.GetNetObject(L, 3, typeof(DG.Tweening.Tween));
        DG.Tweening.Sequence o    = DG.Tweening.TweenSettingsExtensions.Insert(arg0, arg1, arg2);
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
示例#25
0
 static public int get_easeOvershootOrAmplitude(IntPtr l)
 {
     try {
         DG.Tweening.Tween self = (DG.Tweening.Tween)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.easeOvershootOrAmplitude);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#26
0
 static public int get_id(IntPtr l)
 {
     try {
         DG.Tweening.Tween self = (DG.Tweening.Tween)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.id);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#27
0
 static public int set_fullPosition(IntPtr l)
 {
     try {
         DG.Tweening.Tween self = (DG.Tweening.Tween)checkSelf(l);
         float             v;
         checkType(l, 2, out v);
         self.fullPosition = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#28
0
 static public int set_timeScale(IntPtr l)
 {
     try {
         DG.Tweening.Tween self = (DG.Tweening.Tween)checkSelf(l);
         System.Single     v;
         checkType(l, 2, out v);
         self.timeScale = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#29
0
 static public int set_id(IntPtr l)
 {
     try {
         DG.Tweening.Tween self = (DG.Tweening.Tween)checkSelf(l);
         System.Object     v;
         checkType(l, 2, out v);
         self.id = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#30
0
 static public int set_easeOvershootOrAmplitude(IntPtr l)
 {
     try {
         DG.Tweening.Tween self = (DG.Tweening.Tween)checkSelf(l);
         System.Single     v;
         checkType(l, 2, out v);
         self.easeOvershootOrAmplitude = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }