mirror of
https://github.com/ppy/osu
synced 2024-12-12 18:07:52 +00:00
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
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 NUnit.Framework;
|
|
using osu.Game.Beatmaps.ControlPoints;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Rulesets.Taiko.Skinning.Legacy;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
|
{
|
|
public partial class TestSceneTaikoKiaiGlow : TaikoSkinnableTestScene
|
|
{
|
|
[Test]
|
|
public void TestKiaiGlow()
|
|
{
|
|
AddStep("Create kiai glow", () => SetContents(_ => new LegacyKiaiGlow()));
|
|
AddToggleStep("Toggle kiai mode", setUpBeatmap);
|
|
}
|
|
|
|
private void setUpBeatmap(bool withKiai)
|
|
{
|
|
var controlPointInfo = new ControlPointInfo();
|
|
|
|
controlPointInfo.Add(0, new TimingControlPoint { BeatLength = 500 });
|
|
|
|
if (withKiai)
|
|
controlPointInfo.Add(0, new EffectControlPoint { KiaiMode = true });
|
|
|
|
Beatmap.Value = CreateWorkingBeatmap(new Beatmap
|
|
{
|
|
ControlPointInfo = controlPointInfo
|
|
});
|
|
|
|
Beatmap.Value.Track.Start();
|
|
}
|
|
}
|
|
}
|