Implement the 012-turn-navigation feature that adds a RetreatTurn domain operation and relocates turn controls to a navigation bar at the top of the encounter tracker

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lukas
2026-03-05 23:11:11 +01:00
parent a0d85a07e3
commit 7d440677be
19 changed files with 946 additions and 13 deletions

View File

@@ -56,6 +56,18 @@ export interface CurrentHpAdjusted {
readonly delta: number;
}
export interface TurnRetreated {
readonly type: "TurnRetreated";
readonly previousCombatantId: CombatantId;
readonly newCombatantId: CombatantId;
readonly roundNumber: number;
}
export interface RoundRetreated {
readonly type: "RoundRetreated";
readonly newRoundNumber: number;
}
export type DomainEvent =
| TurnAdvanced
| RoundAdvanced
@@ -64,4 +76,6 @@ export type DomainEvent =
| CombatantUpdated
| InitiativeSet
| MaxHpSet
| CurrentHpAdjusted;
| CurrentHpAdjusted
| TurnRetreated
| RoundRetreated;