2020-05-29 15:40:10 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
2023-09-20 14:28:13 +08:00
|
|
|
using osu.Game.Beatmaps;
|
2020-05-29 15:40:10 +08:00
|
|
|
using osu.Game.Rulesets.Edit;
|
|
|
|
using osu.Game.Rulesets.Edit.Tools;
|
2023-09-20 14:28:13 +08:00
|
|
|
using osu.Game.Rulesets.Mods;
|
2020-05-29 15:40:10 +08:00
|
|
|
using osu.Game.Rulesets.Taiko.Objects;
|
2023-09-20 14:28:13 +08:00
|
|
|
using osu.Game.Rulesets.UI;
|
2020-05-29 15:40:10 +08:00
|
|
|
using osu.Game.Screens.Edit.Compose.Components;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Edit
|
|
|
|
{
|
2023-09-01 18:49:57 +08:00
|
|
|
public partial class TaikoHitObjectComposer : ScrollingHitObjectComposer<TaikoHitObject>
|
2020-05-29 15:40:10 +08:00
|
|
|
{
|
2023-07-29 04:09:28 +08:00
|
|
|
protected override bool ApplyHorizontalCentering => false;
|
2023-07-27 01:22:46 +08:00
|
|
|
|
2020-05-29 15:40:23 +08:00
|
|
|
public TaikoHitObjectComposer(TaikoRuleset ruleset)
|
2020-05-29 15:40:10 +08:00
|
|
|
: base(ruleset)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override IReadOnlyList<HitObjectCompositionTool> CompositionTools => new HitObjectCompositionTool[]
|
|
|
|
{
|
|
|
|
new HitCompositionTool(),
|
|
|
|
new DrumRollCompositionTool(),
|
|
|
|
new SwellCompositionTool()
|
|
|
|
};
|
|
|
|
|
2023-09-20 14:28:13 +08:00
|
|
|
protected override DrawableRuleset<TaikoHitObject> CreateDrawableRuleset(Ruleset ruleset, IBeatmap beatmap, IReadOnlyList<Mod> mods) =>
|
|
|
|
new DrawableTaikoEditorRuleset(ruleset, beatmap, mods);
|
|
|
|
|
2020-11-12 18:52:02 +08:00
|
|
|
protected override ComposeBlueprintContainer CreateBlueprintContainer()
|
|
|
|
=> new TaikoBlueprintContainer(this);
|
2023-10-17 15:54:59 +08:00
|
|
|
|
2023-10-17 16:09:42 +08:00
|
|
|
protected override BeatSnapGrid CreateBeatSnapGrid() => new TaikoBeatSnapGrid();
|
2020-05-29 15:40:10 +08:00
|
|
|
}
|
|
|
|
}
|