Files
cmr-mini/miniprogram/game/core/gameSessionState.ts

14 lines
413 B
TypeScript

export type GameSessionStatus = 'idle' | 'running' | 'finished' | 'failed'
export type GuidanceState = 'searching' | 'approaching' | 'ready'
export interface GameSessionState {
status: GameSessionStatus
startedAt: number | null
endedAt: number | null
completedControlIds: string[]
currentTargetControlId: string | null
inRangeControlId: string | null
score: number
guidanceState: GuidanceState
}