-
Notifications
You must be signed in to change notification settings - Fork 47
[+] Add support for GetGameMusicScoreApi for #47 #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add judgement for GameId and GameVersion
# Conflicts: # AquaMai.Mods/GameSystem/SinglePlayer.cs
更新后的单人游戏入口流程的类图classDiagram
class SinglePlayer {
+PostDecideEntry(EntryMonitor __instance)
+OnAfterPatch()
}
class OperationManager {
+DownloadMusicScore()
}
class GameInfo {
+GameVersion
+GameId
}
SinglePlayer --> OperationManager : calls DownloadMusicScore conditionally
SinglePlayer --> GameInfo : checks GameVersion and GameId
文件级别变更
提示和命令与 Sourcery 交互
自定义您的体验访问您的 仪表板 以:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's GuideIntroduce conditional invocation of the music score download API in the single‐player entry flow and correct file formatting. Sequence diagram for conditional music score download in single-player entrysequenceDiagram
participant EntryMonitor
participant TimeManager
participant EventManager
participant ScoreRankingManager
participant OperationManager
participant GameInfo
participant SharedInstances
participant Process
participant ProcessManager
EntryMonitor->>TimeManager: MarkGameStartTime()
EntryMonitor->>EventManager: UpdateEvent()
EntryMonitor->>ScoreRankingManager: UpdateData()
EntryMonitor->>GameInfo: Check GameVersion and GameId
alt GameVersion >= 25000 and GameId == "SDEZ"
EntryMonitor->>OperationManager: DownloadMusicScore()
end
EntryMonitor->>SharedInstances: StartCoroutine(LaterDisableCardReader())
EntryMonitor->>Process: CreateDownloadProcess()
EntryMonitor->>ProcessManager: SendMessage(CommonProcess, 30001)
Class diagram for updated SinglePlayer entry flowclassDiagram
class SinglePlayer {
+PostDecideEntry(EntryMonitor __instance)
+OnAfterPatch()
}
class OperationManager {
+DownloadMusicScore()
}
class GameInfo {
+GameVersion
+GameId
}
SinglePlayer --> OperationManager : calls DownloadMusicScore conditionally
SinglePlayer --> GameInfo : checks GameVersion and GameId
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嘿 @SoulGateKey - 我已经审查了你的修改,它们看起来很棒!
帮助我更有用!请在每个评论上点击 👍 或 👎,我将使用反馈来改进您的评论。
Original comment in English
Hey @SoulGateKey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| TimeManager.MarkGameStartTime(); | ||
| Singleton<EventManager>.Instance.UpdateEvent(); | ||
| Singleton<ScoreRankingManager>.Instance.UpdateData(); | ||
| if(GameInfo.GameVersion >= 25000 && GameInfo.GameId == "SDEZ") {Singleton<OperationManager>.Instance.DownloadMusicScore();} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这么写,在 1.45 及以下版本上测试过吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已在1.55测试,musicscore可以正常触发下载
以及25000不是1.50吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果版本低于25000(1.50)并且不是sdez的话 不会启用
这个api随着kaleidxscope的加入而加入
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是啊,我说的是 1.45 及以下版本
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.45以下版本if不会被触发不就没事了(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已在1.45 1.40 版本测试,未发现明显异常
Sourcery 总结
新特性:
Original summary in English
Summary by Sourcery
New Features: