mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 06:47:25 +08:00
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using System.Collections.Generic;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Rulesets.Edit;
|
|
using osu.Game.Rulesets.Edit.Tools;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
using osu.Game.Rulesets.UI;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit
|
|
{
|
|
public class OsuHitObjectComposer : HitObjectComposer
|
|
{
|
|
public OsuHitObjectComposer(Ruleset ruleset)
|
|
: base(ruleset)
|
|
{
|
|
}
|
|
|
|
protected override RulesetContainer CreateRulesetContainer(Ruleset ruleset, WorkingBeatmap beatmap) => new OsuEditRulesetContainer(ruleset, beatmap, true);
|
|
|
|
protected override IReadOnlyList<ICompositionTool> CompositionTools => new ICompositionTool[]
|
|
{
|
|
new HitObjectCompositionTool<HitCircle>(),
|
|
new HitObjectCompositionTool<Slider>(),
|
|
new HitObjectCompositionTool<Spinner>()
|
|
};
|
|
}
|
|
}
|