1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-15 16:13:13 +08:00
Commit Graph

1 Commits

  • Decouple bar line hitobjects from generator
    Introduce an IBarLine interface, which together with generic constraints
    helps decouple BarLineGenerator from the actual hitobject types it
    creates. Thanks to this, all rulesets that want bar lines can provide
    an implementation of IBarLine that also derives from the base hitobject
    class.
    
    This allows DrawableBarLines in taiko and mania to be migrated back to
    DrawableTaikoHitObject and DrawableManiaHitObject base classes
    respectively. This in turn resolves #6215 without code duplication,
    since the missing anchoring application is now done in mania's
    DrawableBarLine through deriving from DrawableManiaHitObject.