1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 17:02:55 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Edit/OsuHitObjectComposer.cs

30 lines
1.0 KiB
C#
Raw Normal View History

2017-11-29 15:22:11 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
2017-11-30 18:19:34 +08:00
using osu.Game.Beatmaps;
2017-11-30 17:48:00 +08:00
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Edit.Tools;
using osu.Game.Rulesets.Osu.Objects;
2017-11-30 18:19:34 +08:00
using osu.Game.Rulesets.UI;
2017-11-29 15:22:11 +08:00
namespace osu.Game.Rulesets.Osu.Edit
{
2017-11-30 17:48:00 +08:00
public class OsuHitObjectComposer : HitObjectComposer
2017-11-29 15:22:11 +08:00
{
public OsuHitObjectComposer(Ruleset ruleset)
: base(ruleset)
{
}
2017-11-30 18:19:34 +08:00
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>()
};
2017-11-29 15:22:11 +08:00
}
}