1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00
osu-lazer/osu.Game.Rulesets.Mania.Tests/ManiaSelectionBlueprintTestCase.cs

39 lines
1.2 KiB
C#
Raw Normal View History

2018-11-13 15:42:40 +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.Allocation;
2018-11-15 20:37:22 +08:00
using osu.Framework.Graphics;
2018-11-13 15:42:40 +08:00
using osu.Framework.Timing;
2018-11-15 20:37:22 +08:00
using osu.Game.Rulesets.Mania.Edit;
using osu.Game.Rulesets.Mania.UI;
2018-11-13 15:42:40 +08:00
using osu.Game.Tests.Visual;
2018-11-26 10:47:48 +08:00
using osuTK;
using osuTK.Graphics;
2018-11-13 15:42:40 +08:00
namespace osu.Game.Rulesets.Mania.Tests
{
2018-11-15 20:37:22 +08:00
[Cached(Type = typeof(IManiaHitObjectComposer))]
public abstract class ManiaSelectionBlueprintTestCase : SelectionBlueprintTestCase, IManiaHitObjectComposer
2018-11-13 15:42:40 +08:00
{
[Cached(Type = typeof(IAdjustableClock))]
private readonly IAdjustableClock clock = new StopwatchClock();
2018-11-15 20:37:22 +08:00
private readonly Column column;
protected ManiaSelectionBlueprintTestCase()
{
Add(column = new Column(0)
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AccentColour = Color4.OrangeRed,
Clock = new FramedClock(new StopwatchClock()), // No scroll
});
}
public Column ColumnAt(Vector2 screenSpacePosition) => column;
public int TotalColumns => 1;
2018-11-13 15:42:40 +08:00
}
}