Skip to content
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

Separate the working property. #2091

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

andy840119
Copy link
Member

@andy840119 andy840119 commented Aug 7, 2023

Mark as part of #2090.

目前希望 stageInfo 也能有自己的 processor.

第一個目標是把 ValidateWorkingProperty 分開
讓 beatmap processor / stage info processor 能夠分別丟入 karaoke beatmap / stage info 來把 lyric/note 的 working property 補上值

以 lyric 舉例
目前所有的 working property type 都是放在同一個 enum 中

但會有一個缺點,需要呼叫ValidateWorkingProperty(beatmap) + ValidateWorkingProperty(stage) 才能把所有的 working property 都補上值

有一個想法,是不同種類的 working property (beatmap / stage) 應該都要有自己的 enum,有一些好處:

  • 可以確認 ValidateWorkingProperty(beatmap) 跑完後,所有和 beatmap 相關的 working property 都是有值的

Notion:
https://karaoke-dev.notion.site/HitObject-working-property-f269d04837a14000a2a21e03c1a8c8d0?pvs=4
先記錄在這邊,想好後再開始處理這隻 PR

@andy840119
Copy link
Member Author

想清楚後再決定要不要 merge.
感覺會有一些問題需要釐清

還有需要想想不合併會怎樣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant