mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 12:32:20 +08:00
fae5c0e7bb
Should close https://github.com/ppy/osu/issues/34222. I haven't exactly managed to reproduce the issue myself but I'm relatively confident in the imagined mode of failure here. See https://github.com/ppy/osu/blob/861a7e1db4b72ccfec67ef5f9a6a19faa0978d3f/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsPlayer.cs#L25-L37 https://github.com/ppy/osu/blob/861a7e1db4b72ccfec67ef5f9a6a19faa0978d3f/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsPlayer.cs#L53
27 lines
911 B
C#
27 lines
911 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.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>();
|
|
}
|
|
}
|