feat: update residence learning flows

Commit non-media application and asset changes while leaving audio, video, and environment files out of version control.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
zhongyidianandClaude Opus 4.7 committed 2026-05-13 10:15:26 +08:00
1 parent 68ba22a33f
commit 6d40e19346
184 files changed
+7663 -2203

No files matched your search

+13
View File
@@ -55,6 +55,10 @@ interface NieerStore {
// 是否已经看过体悟首页学习引导
hasSeenReflectionGuide: boolean
markReflectionGuideSeen: () => void
// 是否已经看过旅行箱提示
hasSeenBoxHint: boolean
markBoxHintSeen: () => void
}
// 将 Set 转换为数组以便序列化
@@ -134,6 +138,7 @@ export const useNieerStore = create<NieerStore>()(
visitedReflectionCursors: {},
reflectionWorks: {},
hasSeenReflectionGuide: false,
hasSeenBoxHint: false,
markReflectionCursorVisited: (scene: string, cursorId: number) => {
set((state) => {
@@ -191,6 +196,10 @@ export const useNieerStore = create<NieerStore>()(
markReflectionGuideSeen: () => {
set({ hasSeenReflectionGuide: true })
},
markBoxHintSeen: () => {
set({ hasSeenBoxHint: true })
},
}),
{
name: STORE_NAMES.NIEER,
@@ -200,6 +209,7 @@ export const useNieerStore = create<NieerStore>()(
lastVisitedPlace: state.lastVisitedPlace,
reflectionWorks: state.reflectionWorks,
hasSeenReflectionGuide: state.hasSeenReflectionGuide,
hasSeenBoxHint: state.hasSeenBoxHint,
}),
onRehydrateStorage: () => (state) => {
if (state) {
@@ -216,6 +226,9 @@ export const useNieerStore = create<NieerStore>()(
if ((state as any).hasSeenReflectionGuide === undefined) {
;(state as any).hasSeenReflectionGuide = false
}
if ((state as any).hasSeenBoxHint === undefined) {
;(state as any).hasSeenBoxHint = false
}
}
},
}