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

            if (count == 1)
            {
                DG.Tweening.Tweener obj = (DG.Tweening.Tweener)ToLua.CheckObject <DG.Tweening.Tweener>(L, 1);
                DG.Tweening.Tweener o   = obj.From();
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2)
            {
                DG.Tweening.Tweener obj = (DG.Tweening.Tweener)ToLua.CheckObject <DG.Tweening.Tweener>(L, 1);
                bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
                DG.Tweening.Tweener o = obj.From(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tweener.From"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 2
0
    static int From(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 1)
        {
            DG.Tweening.Tweener obj = (DG.Tweening.Tweener)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tweener");
            DG.Tweening.Tweener o   = obj.From();
            LuaScriptMgr.PushObject(L, o);
            return(1);
        }
        else if (count == 2)
        {
            DG.Tweening.Tweener obj = (DG.Tweening.Tweener)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tweener");
            bool arg0             = LuaScriptMgr.GetBoolean(L, 2);
            DG.Tweening.Tweener o = obj.From(arg0);
            LuaScriptMgr.PushObject(L, o);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: DG.Tweening.Tweener.From");
        }

        return(0);
    }
    static int From(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tweener)))
            {
                DG.Tweening.Tweener obj = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                DG.Tweening.Tweener o   = obj.From();
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(DG.Tweening.Tweener), typeof(bool)))
            {
                DG.Tweening.Tweener obj = (DG.Tweening.Tweener)ToLua.ToObject(L, 1);
                bool arg0             = LuaDLL.lua_toboolean(L, 2);
                DG.Tweening.Tweener o = obj.From(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tweener.From"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 4
0
 static int QPYX_From_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 1)
         {
             DG.Tweening.Tweener QPYX_obj_YXQP = (DG.Tweening.Tweener)ToLua.CheckObject <DG.Tweening.Tweener>(L_YXQP, 1);
             DG.Tweening.Tweener QPYX_o_YXQP   = QPYX_obj_YXQP.From();
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 2)
         {
             DG.Tweening.Tweener QPYX_obj_YXQP = (DG.Tweening.Tweener)ToLua.CheckObject <DG.Tweening.Tweener>(L_YXQP, 1);
             bool QPYX_arg0_YXQP             = LuaDLL.luaL_checkboolean(L_YXQP, 2);
             DG.Tweening.Tweener QPYX_o_YXQP = QPYX_obj_YXQP.From(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.Tweener.From"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 5
0
        static int _m_From(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    DG.Tweening.Tweener gen_ret = gen_to_be_invoked.From(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _isRelative = LuaAPI.lua_toboolean(L, 2);

                    DG.Tweening.Tweener gen_ret = gen_to_be_invoked.From(_isRelative);
                    translator.Push(L, 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.Tweener.From!"));
        }