namespace RolemasterDb.ImportTool.Parsing;

internal sealed class StandardTableLayout(
    IReadOnlyList<PositionedTextFragment> excludedFragments,
    IReadOnlyList<(string Key, double CenterX)> columnCenters,
    IReadOnlyList<RowAnchor> rowAnchors,
    int headerTop,
    int bodyStartTop,
    int keyTop,
    int leftCutoff,
    IReadOnlyList<string>? warnings = null)
{
    public IReadOnlyList<PositionedTextFragment> ExcludedFragments { get; } = excludedFragments;
    public IReadOnlyList<(string Key, double CenterX)> ColumnCenters { get; } = columnCenters;
    public IReadOnlyList<RowAnchor> RowAnchors { get; } = rowAnchors;
    public int HeaderTop { get; } = headerTop;
    public int BodyStartTop { get; } = bodyStartTop;
    public int KeyTop { get; } = keyTop;
    public int LeftCutoff { get; } = leftCutoff;
    public IReadOnlyList<string> Warnings { get; } = warnings ?? [];
}
