feat: chapter select system, multi-chapter support, scene manager refactor, and docs update

This commit is contained in:
2026-06-09 11:35:11 +08:00
parent 655b9a23d0
commit ace5ed1fb3
14 changed files with 413 additions and 17 deletions

View File

@@ -67,10 +67,19 @@ export interface QTEDefinition {
}
}
export interface ChapterInfo {
id: string
label: string
startScene: string
thumbnail?: string
defaultVariables?: Record<string, number>
}
export interface GameData {
scenes: Record<string, SceneNode>
startScene: string
variables: Record<string, number>
chapters?: ChapterInfo[]
}
export interface ChoiceRecord {
@@ -101,3 +110,4 @@ export type EngineEvent =
| 'choiceTimeout'
| 'hotspotRequest'
| 'hotspotUpdate'
| 'chapterUnlock'