Example #1
0
    public static int GetLastUpdateTime(IntPtr l)
    {
        int result;

        try
        {
            CommentComponent commentComponent = (CommentComponent)LuaObject.checkSelf(l);
            int heroId;
            LuaObject.checkType(l, 2, out heroId);
            long lastUpdateTime = commentComponent.GetLastUpdateTime(heroId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, lastUpdateTime);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }