Ejemplo n.º 1
0
    static int Elapsed(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
                float             o   = obj.Elapsed();
                LuaDLL.lua_pushnumber(L, o);
                return(1);
            }
            else if (count == 2)
            {
                DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
                bool  arg0            = LuaDLL.luaL_checkboolean(L, 2);
                float o = obj.Elapsed(arg0);
                LuaDLL.lua_pushnumber(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tween.Elapsed"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Ejemplo n.º 2
0
    static int Elapsed(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
        bool  arg0            = LuaScriptMgr.GetBoolean(L, 2);
        float o = obj.Elapsed(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 3
0
 static int Elapsed(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Tween));
         bool  arg0            = LuaDLL.luaL_checkboolean(L, 2);
         float o = obj.Elapsed(arg0);
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }