Beispiel #1
0
    static int get_onKill(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.Tween         obj = (DG.Tweening.Tween)o;
            DG.Tweening.TweenCallback ret = obj.onKill;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onKill on a nil value"));
        }
    }
 static int InsertCallback(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         DG.Tweening.Sequence obj = (DG.Tweening.Sequence)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Sequence));
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         DG.Tweening.TweenCallback arg1 = (DG.Tweening.TweenCallback)ToLua.CheckDelegate <DG.Tweening.TweenCallback>(L, 3);
         DG.Tweening.Sequence      o    = obj.InsertCallback(arg0, arg1);
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #3
0
    static int set_onKill(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.Tween         obj  = (DG.Tweening.Tween)o;
            DG.Tweening.TweenCallback arg0 = (DG.Tweening.TweenCallback)ToLua.CheckDelegate <DG.Tweening.TweenCallback>(L, 2);
            obj.onKill = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onKill on a nil value"));
        }
    }
    static bool DOVirtual_DelayedCall__Single__TweenCallback__Boolean(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 2)
        {
            System.Single             arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            DG.Tweening.TweenCallback arg1 = JSDataExchangeMgr.GetJSArg <DG.Tweening.TweenCallback>(() =>
            {
                if (JSApi.isFunctionS((int)JSApi.GetType.Arg))
                {
                    return(DOVirtual_DelayedCall_GetDelegate_member0_arg1(JSApi.getFunctionS((int)JSApi.GetType.Arg)));
                }
                else
                {
                    return((DG.Tweening.TweenCallback)JSMgr.datax.getObject((int)JSApi.GetType.Arg));
                }
            });
            JSMgr.datax.setObject((int)JSApi.SetType.Rval, DG.Tweening.DOVirtual.DelayedCall(arg0, arg1));
        }
        else if (len == 3)
        {
            System.Single             arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            DG.Tweening.TweenCallback arg1 = JSDataExchangeMgr.GetJSArg <DG.Tweening.TweenCallback>(() =>
            {
                if (JSApi.isFunctionS((int)JSApi.GetType.Arg))
                {
                    return(DOVirtual_DelayedCall_GetDelegate_member0_arg1(JSApi.getFunctionS((int)JSApi.GetType.Arg)));
                }
                else
                {
                    return((DG.Tweening.TweenCallback)JSMgr.datax.getObject((int)JSApi.GetType.Arg));
                }
            });
            System.Boolean arg2 = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg);
            JSMgr.datax.setObject((int)JSApi.SetType.Rval, DG.Tweening.DOVirtual.DelayedCall(arg0, arg1, arg2));
        }

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

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

        return(true);
    }
Beispiel #6
0
        static int _m_OnKill(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


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

                    DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.OnKill(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_OnStepComplete(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

                    DG.Tweening.Tween gen_ret = gen_to_be_invoked.OnStepComplete(_action);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
    static int OnUpdate(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween         obj  = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
        DG.Tweening.TweenCallback arg0 = null;
        LuaTypes funcType2             = LuaDLL.lua_type(L, 2);

        if (funcType2 != LuaTypes.LUA_TFUNCTION)
        {
            arg0 = (DG.Tweening.TweenCallback)LuaScriptMgr.GetNetObject(L, 2, typeof(DG.Tweening.TweenCallback));
        }
        else
        {
            LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 2);
            arg0 = () =>
            {
                func.Call();
            };
        }

        DG.Tweening.Tween o = obj.OnUpdate(arg0);
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
        static int _m_PrependCallback(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

                    DG.Tweening.Sequence __cl_gen_ret = __cl_gen_to_be_invoked.PrependCallback(callback);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #10
0
 public SUIMenuScriptStyle01(int _direction, Dictionary <string, GameObject> _objDictionary, int _AnimationType, int _ScriptType, bool _isBase, DG.Tweening.TweenCallback _callback)
     : base(_direction, _objDictionary, _AnimationType, _ScriptType)
 {
     isBase   = _isBase;
     callback = _callback;
     vpos     = new Vector3[objDictionary.Count];
     ScriptSCC01(ScriptType);
 }
Beispiel #11
0
 public void MenuPlay(Dictionary <string, GameObject> _MenuDictionary, bool isBase, DG.Tweening.TweenCallback callback = null)
 {
     tmpSuiMenu = new SUIMenuScriptStyle01((int)direction, _MenuDictionary, AnimationType, ScriptType, isBase, callback);
 }