gameResult.ts 736 B

123456789101112131415
  1. import { type GameSessionState, type GuidanceState } 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: 'guidance_state_changed'; guidanceState: GuidanceState; controlId: string | null }
  8. | { type: 'session_finished' }
  9. export interface GameResult {
  10. nextState: GameSessionState
  11. presentation: GamePresentationState
  12. effects: GameEffect[]
  13. }