feat: normalモード実装に向けたベース型の拡張と初期状態の追加 (#48)#49
Open
duck-ahiru-Z wants to merge 3 commits into
Open
Conversation
- handleGameCommand: コマンド種別ごとの handleXxx ハンドラ群 + ディスパッチに再構成 - 共有ヘルパー(appendNextHint/notify/rejectWithMiss/rejectOutOfOrder)を新設し重複を解消 - git push origin <branch>: 現レーンと異なるブランチへの push をエラー化(誤配達を防止) - commandLogic: 未使用コード(createPullOrderPayload/resolveRuntimeCommandLogic/ramenId 等)を削除 - useGmScreen: 不要になった ramenId 引数の受け渡しを削除 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
normalモード(中級 / course=2)の実装において、追加ギミック(stash / stash pop / reset --soft)を扱うための下準備。
後続のタスク(#43, #44)をコンパイルエラーなく進められるように、型定義と初期状態の拡張を行いました。
変更内容
frontend/src/types/interface.tsCommandStepTypeに'stash' | 'stash_pop' | 'reset_soft'を追加。Ramen型に調理の退避状態を管理するフラグisStashed: booleanを追加。frontend/src/game/gameEngine.tscreateRamenEntryの戻り値の初期化プロパティにisStashed: falseを追加し、型エラーを解消。関連Issue
Closes #48
(親Epic: #41)