1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-19 10:12:54 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Edit/OsuEditRulesetContainer.cs

37 lines
1.2 KiB
C#
Raw Normal View History

2018-04-13 17:19:50 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics.Cursor;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Osu.Objects;
2018-04-13 17:19:50 +08:00
using osu.Game.Rulesets.Osu.UI;
using osu.Game.Rulesets.UI;
2018-04-13 17:19:50 +08:00
using OpenTK;
namespace osu.Game.Rulesets.Osu.Edit
{
public class OsuEditRulesetContainer : EditRulesetContainer<OsuHitObject>
2018-04-13 17:19:50 +08:00
{
public OsuEditRulesetContainer(Ruleset ruleset, WorkingBeatmap workingBeatmap)
: base(ruleset, workingBeatmap)
2018-04-13 17:19:50 +08:00
{
}
protected override RulesetContainer<OsuHitObject> CreateRulesetContainer(Ruleset ruleset, WorkingBeatmap workingBeatmap)
=> new RulesetContainer(ruleset, workingBeatmap);
2018-04-13 17:19:50 +08:00
private new class RulesetContainer : OsuRulesetContainer
{
public RulesetContainer(Ruleset ruleset, WorkingBeatmap beatmap)
: base(ruleset, beatmap)
{
}
protected override CursorContainer CreateCursor() => null;
2018-10-16 16:28:23 +08:00
protected override Playfield CreatePlayfield() => new OsuPlayfield { Size = Vector2.One };
}
2018-04-13 17:19:50 +08:00
}
}