Path: blob/master/osu.Game/Screens/Select/Leaderboards/IGameplayLeaderboardProvider.cs
5261 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Bindables; namespace osu.Game.Screens.Select.Leaderboards { /// <summary> /// Provides a leaderboard to show during gameplay. /// </summary> public interface IGameplayLeaderboardProvider { /// <summary> /// List of all scores to display on the leaderboard. /// </summary> /// <remarks> /// Implementors should ensure that this list is only mutated from the update thread. /// </remarks> IBindableList<GameplayLeaderboardScore> Scores { get; } } public class EmptyGameplayLeaderboardProvider : IGameplayLeaderboardProvider { public IBindableList<GameplayLeaderboardScore> Scores { get; } = new BindableList<GameplayLeaderboardScore>(); } }