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;
|
2023-01-25 09:46:52 +00:00
|
|
|
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]
|
2023-01-25 09:46:52 +00:00
|
|
|
public partial class TestSceneHitCircleKiai : TestSceneHitCircle, IBeatSyncProvider
|
2021-06-04 05:06:23 +00:00
|
|
|
{
|
2023-01-25 09:46:52 +00:00
|
|
|
private ControlPointInfo controlPoints { get; set; }
|
|
|
|
|
2021-06-04 05:06:23 +00:00
|
|
|
[SetUp]
|
|
|
|
public void SetUp() => Schedule(() =>
|
|
|
|
{
|
2023-01-25 09:46:52 +00:00
|
|
|
controlPoints = new ControlPointInfo();
|
2021-06-04 05:06:23 +00:00
|
|
|
|
2023-01-25 09:46:52 +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
|
|
|
|
{
|
2023-01-25 09:46:52 +00:00
|
|
|
ControlPointInfo = controlPoints
|
2021-06-04 05:06:23 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
// track needs to be playing for BeatSyncedContainer to work.
|
|
|
|
Beatmap.Value.Track.Start();
|
|
|
|
});
|
2023-01-25 09:46:52 +00:00
|
|
|
|
|
|
|
ChannelAmplitudes IHasAmplitudes.CurrentAmplitudes => new ChannelAmplitudes();
|
|
|
|
ControlPointInfo IBeatSyncProvider.ControlPoints => controlPoints;
|
|
|
|
IClock IBeatSyncProvider.Clock => Clock;
|
2021-06-04 05:06:23 +00:00
|
|
|
}
|
|
|
|
}
|