1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Add PlayerPosition property

This commit is contained in:
iiSaLMaN 2019-08-04 18:39:42 +03:00
parent fdd00c0820
commit ca7a812e1c

View File

@ -75,6 +75,11 @@ namespace osu.Game.Tests.Visual.Gameplay
private class TestInGameLeaderboard : InGameLeaderboard
{
public void ClearScores() => ScoresContainer.RemoveAll(s => s.User.Username != PlayerUser.Username);
public int? PlayerPosition
{
get => PlayerScoreItem.ScorePosition;
set => PlayerScoreItem.ScorePosition = value;
}
public bool CheckPositionByUsername(string username, int? estimatedPosition)
{