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

refactor!: convert overhaul #44

Merged
merged 3 commits into from
Nov 18, 2024
Merged

refactor!: convert overhaul #44

merged 3 commits into from
Nov 18, 2024

Conversation

MaxOhn
Copy link
Owner

@MaxOhn MaxOhn commented Nov 18, 2024

Instead of requiring users to convert by going from Beatmap to Converted, prior conversion is now optional. This causes all attribute calculations to be fallible! Whenever a calculation requires a beatmap to be converted but the conversion fails, it will result in an error. The Converted type has been removed entirely but gamemode marker types are still available to be used with methods on the Difficulty type.

The motivation for this change is that conversion generally also requires mods as a parameter (due to mania's Key mods). The previous api was fairly convoluted in terms of conversion functions and would've been even worse with mode-inclusion.

@MaxOhn MaxOhn merged commit 60f4f89 into main Nov 18, 2024
5 checks passed
@MaxOhn MaxOhn deleted the convert-overhaul branch November 18, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant