Esempio n. 1
0
    static int InsertCallback(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            ToLua_DG_Tweening_Sequence obj = (ToLua_DG_Tweening_Sequence)ToLua.CheckObject(L, 1, typeof(ToLua_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));
        }
    }
Esempio n. 2
0
 static int Join(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ToLua_DG_Tweening_Sequence obj  = (ToLua_DG_Tweening_Sequence)ToLua.CheckObject(L, 1, typeof(ToLua_DG_Tweening_Sequence));
         DG.Tweening.Tween          arg0 = (DG.Tweening.Tween)ToLua.CheckObject(L, 2, typeof(DG.Tweening.Tween));
         DG.Tweening.Sequence       o    = obj.Join(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 3
0
 static int PrependInterval(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ToLua_DG_Tweening_Sequence obj = (ToLua_DG_Tweening_Sequence)ToLua.CheckObject(L, 1, typeof(ToLua_DG_Tweening_Sequence));
         float arg0             = (float)LuaDLL.luaL_checknumber(L, 2);
         DG.Tweening.Sequence o = obj.PrependInterval(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 4
0
 static int Insert(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         ToLua_DG_Tweening_Sequence obj = (ToLua_DG_Tweening_Sequence)ToLua.CheckObject(L, 1, typeof(ToLua_DG_Tweening_Sequence));
         float                arg0      = (float)LuaDLL.luaL_checknumber(L, 2);
         DG.Tweening.Tween    arg1      = (DG.Tweening.Tween)ToLua.CheckObject(L, 3, typeof(DG.Tweening.Tween));
         DG.Tweening.Sequence o         = obj.Insert(arg0, arg1);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 5
0
    static int _CreateToLua_DG_Tweening_Sequence(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                ToLua_DG_Tweening_Sequence obj = new ToLua_DG_Tweening_Sequence();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: ToLua_DG_Tweening_Sequence.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }