feat: 添加了浏览器通知和页面内通知

暂包含建造完成和科研完成
This commit is contained in:
StarsEnd
2025-12-18 01:34:29 +08:00
parent 2e3ac1231f
commit e8590d54c7
10 changed files with 327 additions and 11 deletions

View File

@@ -574,6 +574,19 @@ export interface Player {
diplomaticReports?: DiplomaticReport[] // 外交变化报告
// 新手引导字段
tutorialProgress?: TutorialProgress // 新手引导进度
// 通知设置
notificationSettings?: NotificationSettings
}
export interface NotificationSettings {
browser: boolean
inApp: boolean
suppressInFocus: boolean // 当页面聚焦时是否浏览器通知
types: {
construction: boolean
research: boolean
[key: string]: boolean
}
}
// 游戏状态