chore: sync latest changes

This commit is contained in:
2026-06-09 17:21:54 +08:00
parent bca137535b
commit 451c6ea025
12 changed files with 503 additions and 28 deletions

View File

@@ -79,11 +79,21 @@ export interface ChapterInfo {
defaultVariables?: Record<string, number>
}
export interface AchievementDef {
id: string
title: string
description: string
icon?: string
hidden?: boolean
condition: Condition
}
export interface GameData {
scenes: Record<string, SceneNode>
startScene: string
variables: Record<string, number>
chapters?: ChapterInfo[]
achievements?: AchievementDef[]
}
export interface ChoiceRecord {
@@ -115,3 +125,4 @@ export type EngineEvent =
| 'hotspotRequest'
| 'hotspotUpdate'
| 'chapterUnlock'
| 'achievementUnlock'