This commit is contained in:
2026-05-05 14:40:41 +08:00
parent e847fcea6f
commit 07e777fef8
76 changed files with 4246 additions and 444 deletions

View File

@@ -14,6 +14,7 @@ import { useStoryGoalOptionCoordinator } from './useStoryGoalOptionCoordinator';
type RpgRuntimeStoryFlowParams = {
gameState: GameState;
setGameState: Dispatch<SetStateAction<GameState>>;
sceneTransitionPhase?: 'idle' | 'exiting' | 'entering';
buildResolvedChoiceState: (
state: GameState,
option: StoryOption,
@@ -61,6 +62,7 @@ type RpgRuntimeStoryFlowParams = {
export function useRpgRuntimeStoryFlow({
gameState,
setGameState,
sceneTransitionPhase = 'idle',
buildResolvedChoiceState,
playResolvedChoice,
getStoryGenerationHostileNpcs,
@@ -148,6 +150,7 @@ export function useRpgRuntimeStoryFlow({
} = useRpgRuntimeInteractionFlow({
gameState,
isLoading,
sceneTransitionPhase,
interactionConfig,
runtimeSupport,
buildResolvedChoiceState,