mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 13:47:24 +08:00
e6e66c6aef
Co-authored-by: Susko3 <Susko3@protonmail.com>
30 lines
1009 B
C#
30 lines
1009 B
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 osu.Framework.Allocation;
|
|
using osu.Framework.Audio;
|
|
using osu.Framework.Timing;
|
|
using osu.Game.Beatmaps.ControlPoints;
|
|
using osu.Game.Graphics.Containers;
|
|
|
|
namespace osu.Game.Beatmaps
|
|
{
|
|
/// <summary>
|
|
/// Provides various data sources which allow for synchronising visuals to a known beat.
|
|
/// Primarily intended for use with <see cref="BeatSyncedContainer"/>.
|
|
/// </summary>
|
|
[Cached]
|
|
public interface IBeatSyncProvider : IHasAmplitudes
|
|
{
|
|
/// <summary>
|
|
/// Access any available control points from a beatmap providing beat sync. If <c>null</c>, no current provider is available.
|
|
/// </summary>
|
|
ControlPointInfo? ControlPoints { get; }
|
|
|
|
/// <summary>
|
|
/// Access a clock currently responsible for providing beat sync.
|
|
/// </summary>
|
|
IClock Clock { get; }
|
|
}
|
|
}
|