Initial commit
This commit is contained in:
50
src/RolemasterDb.App/Features/LookupContracts.cs
Normal file
50
src/RolemasterDb.App/Features/LookupContracts.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
namespace RolemasterDb.App.Features;
|
||||
|
||||
public sealed record LookupOption(string Key, string Label);
|
||||
|
||||
public sealed record CriticalTableReference(
|
||||
string Key,
|
||||
string Label,
|
||||
IReadOnlyList<LookupOption> Columns,
|
||||
IReadOnlyList<LookupOption> Groups);
|
||||
|
||||
public sealed record LookupReferenceData(
|
||||
IReadOnlyList<LookupOption> AttackTables,
|
||||
IReadOnlyList<LookupOption> ArmorTypes,
|
||||
IReadOnlyList<CriticalTableReference> CriticalTables);
|
||||
|
||||
public sealed record AttackLookupRequest(
|
||||
string AttackTable,
|
||||
string ArmorType,
|
||||
int Roll,
|
||||
int? CriticalRoll);
|
||||
|
||||
public sealed record CriticalLookupRequest(
|
||||
string CriticalType,
|
||||
string Column,
|
||||
int Roll,
|
||||
string? Group);
|
||||
|
||||
public sealed record CriticalLookupResponse(
|
||||
string CriticalType,
|
||||
string CriticalTableName,
|
||||
string? Group,
|
||||
string Column,
|
||||
int Roll,
|
||||
string RollBand,
|
||||
string Description,
|
||||
string? AffixText);
|
||||
|
||||
public sealed record AttackLookupResponse(
|
||||
string AttackTable,
|
||||
string AttackTableName,
|
||||
string ArmorType,
|
||||
string ArmorTypeLabel,
|
||||
int Roll,
|
||||
string RollBand,
|
||||
int Hits,
|
||||
string? CriticalType,
|
||||
string? CriticalSeverity,
|
||||
string RawNotation,
|
||||
string? Notes,
|
||||
CriticalLookupResponse? AutoCritical);
|
||||
Reference in New Issue
Block a user