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

Move away from inheriting Beat #286

Merged
merged 2 commits into from
May 15, 2022
Merged

Move away from inheriting Beat #286

merged 2 commits into from
May 15, 2022

Conversation

naoei
Copy link
Member

@naoei naoei commented May 14, 2022

While this caused minor issues to us as a whole, for readability's sake this was a significant issue. More notably from the usage of c => c is Beat and not SliderHeadBeat and not SliderRepeat and not SliderTick


namespace osu.Game.Rulesets.Tau.Objects.Drawables
{
public class DrawableSliderRepeat : DrawableBeat
public class DrawableSliderRepeat : DrawableAngledTauHitObject<SliderRepeat>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still entirely unsure about this, on one hand inheriting from DrawableBeat would provide us with less copy-pasting of code, but on the other hand that would require us to add ... is not SliderRepeat again.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that would be a lot more precice in terms of the inheritence.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess...

@naoei naoei merged commit 169dd62 into diff-calc May 15, 2022
@naoei naoei deleted the separate-beat branch May 15, 2022 18:20
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.

2 participants