mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:22:56 +08:00
Add drum roll composition support
This commit is contained in:
parent
280b0adb1d
commit
a953f9e422
@ -34,9 +34,10 @@ namespace osu.Game.Rulesets.Taiko
|
||||
{
|
||||
}
|
||||
|
||||
protected override IReadOnlyList<HitObjectCompositionTool> CompositionTools => new[]
|
||||
protected override IReadOnlyList<HitObjectCompositionTool> CompositionTools => new HitObjectCompositionTool[]
|
||||
{
|
||||
new HitCompositionTool()
|
||||
new HitCompositionTool(),
|
||||
new DrumRollCompositionTool()
|
||||
};
|
||||
|
||||
protected override ComposeBlueprintContainer CreateBlueprintContainer() => new TaikoBlueprintContainer(drawableRuleset.Playfield.AllHitObjects);
|
||||
@ -156,6 +157,26 @@ namespace osu.Game.Rulesets.Taiko
|
||||
}
|
||||
}
|
||||
|
||||
public class DrumRollCompositionTool : HitObjectCompositionTool
|
||||
{
|
||||
public DrumRollCompositionTool()
|
||||
: base(nameof(DrumRoll))
|
||||
{
|
||||
}
|
||||
|
||||
public override PlacementBlueprint CreatePlacementBlueprint() => new DrumRollPlacementBlueprint();
|
||||
}
|
||||
|
||||
public class DrumRollPlacementBlueprint : PlacementBlueprint
|
||||
{
|
||||
private static DrumRoll drumRoll;
|
||||
|
||||
public DrumRollPlacementBlueprint()
|
||||
: base(drumRoll = new DrumRoll())
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class HitCompositionTool : HitObjectCompositionTool
|
||||
{
|
||||
public HitCompositionTool()
|
||||
|
Loading…
Reference in New Issue
Block a user