feat(phase1.2): fix GameManager interface to match Unified API
- Create comprehensive types.ts with all required manager interfaces - Define GameManager with proper Unified API compliance - Implement CursorManager interface in useCursor with VIM motions - Add SnakeCursorManager type with snake-specific extensions - Update useGame to return proper GameManager interface - Support both old (cols, rows) and new (options) signatures - Add quitGame alias for stopGame in useGameStatus - Wrap renderBoard to match Unified API signature (no parameters) - Add placeholder for totalKeystrokes and finalScore in ScoreManager - All TypeScript builds successfully - Example app builds without errors
This commit is contained in:
@@ -158,6 +158,7 @@ export function useGameStatus(
|
||||
setGameStatus,
|
||||
startGame,
|
||||
stopGame,
|
||||
quitGame: stopGame,
|
||||
paused,
|
||||
togglePause: () => setPaused(curr => !curr),
|
||||
score,
|
||||
|
||||
Reference in New Issue
Block a user