mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 13:37:51 +08:00
28 lines
784 B
C#
28 lines
784 B
C#
// 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 osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Game.Tests.Visual;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests
|
|
{
|
|
public abstract class OsuSkinnableTestScene : SkinnableTestScene
|
|
{
|
|
private Container content;
|
|
|
|
protected override Container<Drawable> Content
|
|
{
|
|
get
|
|
{
|
|
if (content == null)
|
|
base.Content.Add(content = new OsuInputManager(new RulesetInfo { ID = 0 }));
|
|
|
|
return content;
|
|
}
|
|
}
|
|
|
|
protected override Ruleset CreateRulesetForSkinProvider() => new OsuRuleset();
|
|
}
|
|
}
|