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 = null;
            LuaTypes funcType3             = LuaDLL.lua_type(L, 3);

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

            DG.Tweening.Sequence o = obj.InsertCallback(arg0, arg1);
            ToLua.PushObject(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 2
0
    static int InsertCallback(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        DG.Tweening.Sequence obj = (DG.Tweening.Sequence)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Sequence");
        float arg0 = (float)LuaScriptMgr.GetNumber(L, 2);

        DG.Tweening.TweenCallback arg1 = null;
        LuaTypes funcType3             = LuaDLL.lua_type(L, 3);

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

        DG.Tweening.Sequence o = obj.InsertCallback(arg0, arg1);
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
Exemplo n.º 3
0
        static int _m_InsertCallback(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    float atPosition = (float)LuaAPI.lua_tonumber(L, 2);
                    DG.Tweening.TweenCallback callback = translator.GetDelegate <DG.Tweening.TweenCallback>(L, 3);

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



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
 static int QPYX_InsertCallback_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 3);
         DG.Tweening.Sequence QPYX_obj_YXQP = (DG.Tweening.Sequence)ToLua.CheckObject(L_YXQP, 1, typeof(DG.Tweening.Sequence));
         float QPYX_arg0_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 2);
         DG.Tweening.TweenCallback QPYX_arg1_YXQP = (DG.Tweening.TweenCallback)ToLua.CheckDelegate <DG.Tweening.TweenCallback>(L_YXQP, 3);
         DG.Tweening.Sequence      QPYX_o_YXQP    = QPYX_obj_YXQP.InsertCallback(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
         ToLua.PushSealed(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 5
0
 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));
     }
 }