osu/osu.Game.Rulesets.Osu.Tests/TestSceneHitCircleKiai.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.3 KiB
C#
Raw Normal View History

2021-06-04 05:06:23 +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
2021-06-04 05:06:23 +00:00
using NUnit.Framework;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Timing;
2021-06-04 05:06:23 +00:00
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Rulesets.Osu.Tests
{
[TestFixture]
public partial class TestSceneHitCircleKiai : TestSceneHitCircle, IBeatSyncProvider
2021-06-04 05:06:23 +00:00
{
private ControlPointInfo controlPoints { get; set; }
2021-06-04 05:06:23 +00:00
[SetUp]
public void SetUp() => Schedule(() =>
{
controlPoints = new ControlPointInfo();
2021-06-04 05:06:23 +00:00
controlPoints.Add(0, new TimingControlPoint { BeatLength = 500 });
controlPoints.Add(0, new EffectControlPoint { KiaiMode = true });
2021-06-04 05:06:23 +00:00
Beatmap.Value = CreateWorkingBeatmap(new Beatmap
{
ControlPointInfo = controlPoints
2021-06-04 05:06:23 +00:00
});
// track needs to be playing for BeatSyncedContainer to work.
Beatmap.Value.Track.Start();
});
ChannelAmplitudes IHasAmplitudes.CurrentAmplitudes => new ChannelAmplitudes();
ControlPointInfo IBeatSyncProvider.ControlPoints => controlPoints;
IClock IBeatSyncProvider.Clock => Clock;
2021-06-04 05:06:23 +00:00
}
}