Ejemplo n.º 1
0
        static int _m_SetUpdate(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 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool isIndependentUpdate = LuaAPI.lua_toboolean(L, 2);

                    DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetUpdate(isIndependentUpdate);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && translator.Assignable <DG.Tweening.UpdateType>(L, 2))
                {
                    DG.Tweening.UpdateType updateType; translator.Get(L, 2, out updateType);

                    DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetUpdate(updateType);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && translator.Assignable <DG.Tweening.UpdateType>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    DG.Tweening.UpdateType updateType; translator.Get(L, 2, out updateType);
                    bool isIndependentUpdate = LuaAPI.lua_toboolean(L, 3);

                    DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetUpdate(updateType, isIndependentUpdate);
                    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.SetUpdate!"));
        }
Ejemplo n.º 2
0
    static int SetUpdate(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, bool>(L, 1))
            {
                DG.Tweening.Sequence obj = (DG.Tweening.Sequence)ToLua.ToObject(L, 1);
                bool arg0           = LuaDLL.lua_toboolean(L, 2);
                DG.Tweening.Tween o = obj.SetUpdate(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, DG.Tweening.UpdateType>(L, 1))
            {
                DG.Tweening.Sequence   obj  = (DG.Tweening.Sequence)ToLua.ToObject(L, 1);
                DG.Tweening.UpdateType arg0 = (DG.Tweening.UpdateType)ToLua.ToObject(L, 2);
                DG.Tweening.Tween      o    = obj.SetUpdate(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3)
            {
                DG.Tweening.Sequence   obj  = (DG.Tweening.Sequence)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Sequence));
                DG.Tweening.UpdateType arg0 = (DG.Tweening.UpdateType)ToLua.CheckObject(L, 2, typeof(DG.Tweening.UpdateType));
                bool arg1           = LuaDLL.luaL_checkboolean(L, 3);
                DG.Tweening.Tween o = obj.SetUpdate(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Sequence.SetUpdate"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int QPYX_SetUpdate_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 2 && TypeChecker.CheckTypes <DG.Tweening.Tween, bool>(L_YXQP, 1))
         {
             DG.Tweening.Sequence QPYX_obj_YXQP = (DG.Tweening.Sequence)ToLua.ToObject(L_YXQP, 1);
             bool QPYX_arg0_YXQP           = LuaDLL.lua_toboolean(L_YXQP, 2);
             DG.Tweening.Tween QPYX_o_YXQP = QPYX_obj_YXQP.SetUpdate(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.UpdateType>(L_YXQP, 1))
         {
             DG.Tweening.Sequence   QPYX_obj_YXQP  = (DG.Tweening.Sequence)ToLua.ToObject(L_YXQP, 1);
             DG.Tweening.UpdateType QPYX_arg0_YXQP = (DG.Tweening.UpdateType)ToLua.ToObject(L_YXQP, 2);
             DG.Tweening.Tween      QPYX_o_YXQP    = QPYX_obj_YXQP.SetUpdate(QPYX_arg0_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 3)
         {
             DG.Tweening.Sequence   QPYX_obj_YXQP  = (DG.Tweening.Sequence)ToLua.CheckObject(L_YXQP, 1, typeof(DG.Tweening.Sequence));
             DG.Tweening.UpdateType QPYX_arg0_YXQP = (DG.Tweening.UpdateType)ToLua.CheckObject(L_YXQP, 2, typeof(DG.Tweening.UpdateType));
             bool QPYX_arg1_YXQP           = LuaDLL.luaL_checkboolean(L_YXQP, 3);
             DG.Tweening.Tween QPYX_o_YXQP = QPYX_obj_YXQP.SetUpdate(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: DG.Tweening.Sequence.SetUpdate"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }