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

            if (count == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, DG.Tweening.TweenParams>(L, 1))
            {
                DG.Tweening.Sequence    obj  = (DG.Tweening.Sequence)ToLua.ToObject(L, 1);
                DG.Tweening.TweenParams arg0 = (DG.Tweening.TweenParams)ToLua.ToObject(L, 2);
                DG.Tweening.Tween       o    = obj.SetAs(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, DG.Tweening.Tween>(L, 1))
            {
                DG.Tweening.Sequence obj  = (DG.Tweening.Sequence)ToLua.ToObject(L, 1);
                DG.Tweening.Tween    arg0 = (DG.Tweening.Tween)ToLua.ToObject(L, 2);
                DG.Tweening.Tween    o    = obj.SetAs(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Sequence.SetAs"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int QPYX_SetAs_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.Tween>(L_YXQP, 1))
         {
             DG.Tweening.Sequence QPYX_obj_YXQP  = (DG.Tweening.Sequence)ToLua.ToObject(L_YXQP, 1);
             DG.Tweening.Tween    QPYX_arg0_YXQP = (DG.Tweening.Tween)ToLua.ToObject(L_YXQP, 2);
             DG.Tweening.Tween    QPYX_o_YXQP    = QPYX_obj_YXQP.SetAs(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.TweenParams>(L_YXQP, 1))
         {
             DG.Tweening.Sequence    QPYX_obj_YXQP  = (DG.Tweening.Sequence)ToLua.ToObject(L_YXQP, 1);
             DG.Tweening.TweenParams QPYX_arg0_YXQP = (DG.Tweening.TweenParams)ToLua.ToObject(L_YXQP, 2);
             DG.Tweening.Tween       QPYX_o_YXQP    = QPYX_obj_YXQP.SetAs(QPYX_arg0_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: DG.Tweening.Sequence.SetAs"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Example #3
0
        static int _m_SetAs(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 2 && translator.Assignable <DG.Tweening.Tween>(L, 2))
                {
                    DG.Tweening.Tween asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween));

                    DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetAs(asTween);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <DG.Tweening.TweenParams>(L, 2))
                {
                    DG.Tweening.TweenParams tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams));

                    DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetAs(tweenParams);
                    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.Sequence.SetAs!"));
        }