mirror of
https://github.com/ppy/osu.git
synced 2024-12-20 00:52:55 +08:00
9690591593
This is a temporary solution for now that uses DrawableHitObject.SampleNamespace for the override. We will not want to do this going forward, and instead have the rulesets add their custom resource stores to the games', but that requires deciding where/when to apply/remove such resource stores, and is probably left to skinning.
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
// 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;
|
|
using System.Collections.Generic;
|
|
using NUnit.Framework;
|
|
using OpenTK;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Game.Audio;
|
|
using osu.Game.Beatmaps.ControlPoints;
|
|
using osu.Game.Rulesets.Taiko.Audio;
|
|
using osu.Game.Rulesets.Taiko.UI;
|
|
using osu.Game.Tests.Visual;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Tests
|
|
{
|
|
[Ignore("getting CI working")]
|
|
public class TestCaseInputDrum : OsuTestCase
|
|
{
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
{
|
|
typeof(InputDrum),
|
|
typeof(DrumSampleMapping),
|
|
typeof(SampleInfo),
|
|
typeof(SampleControlPoint)
|
|
};
|
|
|
|
public TestCaseInputDrum()
|
|
{
|
|
Add(new TaikoInputManager(new RulesetInfo { ID = 1 })
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Child = new Container
|
|
{
|
|
Anchor = Anchor.Centre,
|
|
Origin = Anchor.Centre,
|
|
Size = new Vector2(200),
|
|
Child = new InputDrum(new ControlPointInfo())
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|