2020-04-07 06:38:29 +00: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.
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-07-31 01:43:54 +00:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2020-04-07 06:38:29 +00:00
|
|
|
using osu.Game.Tests.Visual;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests
|
|
|
|
{
|
|
|
|
public abstract partial class OsuSkinnableTestScene : SkinnableTestScene
|
|
|
|
{
|
2020-07-31 01:43:54 +00:00
|
|
|
private Container content;
|
|
|
|
|
|
|
|
protected override Container<Drawable> Content
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
if (content == null)
|
2021-04-07 11:17:20 +00:00
|
|
|
base.Content.Add(content = new OsuInputManager(new OsuRuleset().RulesetInfo));
|
2020-07-31 01:43:54 +00:00
|
|
|
|
|
|
|
return content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-07 07:18:24 +00:00
|
|
|
protected override Ruleset CreateRulesetForSkinProvider() => new OsuRuleset();
|
2020-04-07 06:38:29 +00:00
|
|
|
}
|
|
|
|
}
|