2022-08-03 19:07:54 +08: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.
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
{
|
|
|
|
public static class BeatSyncProviderExtensions
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the beat sync provider is currently in a kiai section. Should make everything more epic.
|
|
|
|
/// </summary>
|
2023-07-13 21:12:55 +08:00
|
|
|
public static bool CheckIsKiaiTime(this IBeatSyncProvider provider) => provider.ControlPoints?.EffectPointAt(provider.Clock.CurrentTime).KiaiMode == true;
|
2022-08-03 19:07:54 +08:00
|
|
|
}
|
|
|
|
}
|