gameResult.ts 621 B

1234567891011121314
  1. import { type GameSessionState } from './gameSessionState'
  2. import { type GamePresentationState } from '../presentation/presentationState'
  3. export type GameEffect =
  4. | { type: 'session_started' }
  5. | { type: 'punch_feedback'; text: string; tone: 'neutral' | 'success' | 'warning' }
  6. | { type: 'control_completed'; controlId: string; controlKind: 'start' | 'control' | 'finish'; sequence: number | null; label: string; displayTitle: string; displayBody: string }
  7. | { type: 'session_finished' }
  8. export interface GameResult {
  9. nextState: GameSessionState
  10. presentation: GamePresentationState
  11. effects: GameEffect[]
  12. }