Critical tables page

This commit is contained in:
2026-03-14 12:38:19 +01:00
parent b399840671
commit e4e8995fd8
10 changed files with 828 additions and 103 deletions

View File

@@ -1,3 +1,5 @@
using System.Collections.Generic;
namespace RolemasterDb.App.Features;
public sealed record LookupOption(string Key, string Label);
@@ -92,3 +94,33 @@ public sealed record AttackLookupResponse(
string RawNotation,
string? Notes,
CriticalLookupResponse? AutoCritical);
public sealed record CriticalTableCellDetail(
string RollBand,
string ColumnKey,
string ColumnLabel,
string ColumnRole,
string? GroupKey,
string? GroupLabel,
string? Description,
IReadOnlyList<CriticalEffectLookupResponse> Effects,
IReadOnlyList<CriticalBranchLookupResponse> Branches);
public sealed record CriticalTableLegendEntry(
string EffectCode,
string Symbol,
string Label,
string Description,
string Tooltip);
public sealed record CriticalTableDetail(
string Slug,
string DisplayName,
string Family,
string SourceDocument,
string? Notes,
IReadOnlyList<CriticalColumnReference> Columns,
IReadOnlyList<CriticalGroupReference> Groups,
IReadOnlyList<CriticalRollBandReference> RollBands,
IReadOnlyList<CriticalTableCellDetail> Cells,
IReadOnlyList<CriticalTableLegendEntry> Legend);