Expose imported critical data in web app
This commit is contained in:
@@ -2,11 +2,32 @@ namespace RolemasterDb.App.Features;
|
||||
|
||||
public sealed record LookupOption(string Key, string Label);
|
||||
|
||||
public sealed record CriticalColumnReference(
|
||||
string Key,
|
||||
string Label,
|
||||
string Role,
|
||||
int SortOrder);
|
||||
|
||||
public sealed record CriticalGroupReference(
|
||||
string Key,
|
||||
string Label,
|
||||
int SortOrder);
|
||||
|
||||
public sealed record CriticalRollBandReference(
|
||||
string Label,
|
||||
int MinRoll,
|
||||
int? MaxRoll,
|
||||
int SortOrder);
|
||||
|
||||
public sealed record CriticalTableReference(
|
||||
string Key,
|
||||
string Label,
|
||||
IReadOnlyList<LookupOption> Columns,
|
||||
IReadOnlyList<LookupOption> Groups);
|
||||
string Family,
|
||||
string SourceDocument,
|
||||
string? Notes,
|
||||
IReadOnlyList<CriticalColumnReference> Columns,
|
||||
IReadOnlyList<CriticalGroupReference> Groups,
|
||||
IReadOnlyList<CriticalRollBandReference> RollBands);
|
||||
|
||||
public sealed record LookupReferenceData(
|
||||
IReadOnlyList<LookupOption> AttackTables,
|
||||
@@ -28,12 +49,23 @@ public sealed record CriticalLookupRequest(
|
||||
public sealed record CriticalLookupResponse(
|
||||
string CriticalType,
|
||||
string CriticalTableName,
|
||||
string CriticalFamily,
|
||||
string SourceDocument,
|
||||
string? TableNotes,
|
||||
string? Group,
|
||||
string? GroupLabel,
|
||||
string Column,
|
||||
string ColumnLabel,
|
||||
string ColumnRole,
|
||||
int Roll,
|
||||
string RollBand,
|
||||
int RollBandMinRoll,
|
||||
int? RollBandMaxRoll,
|
||||
string RawCellText,
|
||||
string Description,
|
||||
string? AffixText);
|
||||
string? AffixText,
|
||||
string ParseStatus,
|
||||
string ParsedJson);
|
||||
|
||||
public sealed record AttackLookupResponse(
|
||||
string AttackTable,
|
||||
|
||||
Reference in New Issue
Block a user