mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Standardise naming for online ID
Rather than continuing with `ID` or `Id`, this should follow the new standards and use `OnlineID` instead. Only updating this since it's a newly introduced class.
This commit is contained in:
@ -258,7 +258,7 @@ namespace osu.Game.Tournament
|
||||
|
||||
public void PopulatePlayer(TournamentPlayer player, Action success = null, Action failure = null, bool immediate = false)
|
||||
{
|
||||
var req = new GetUserRequest(player.Id, ladder.Ruleset.Value);
|
||||
var req = new GetUserRequest(player.OnlineID, ladder.Ruleset.Value);
|
||||
|
||||
if (immediate)
|
||||
{
|
||||
@ -270,7 +270,7 @@ namespace osu.Game.Tournament
|
||||
req.Success += res => { populate(); };
|
||||
req.Failure += _ =>
|
||||
{
|
||||
player.Id = 1;
|
||||
player.OnlineID = 1;
|
||||
failure?.Invoke();
|
||||
};
|
||||
|
||||
@ -284,7 +284,7 @@ namespace osu.Game.Tournament
|
||||
if (res == null)
|
||||
return;
|
||||
|
||||
player.Id = res.Id;
|
||||
player.OnlineID = res.Id;
|
||||
|
||||
player.Username = res.Username;
|
||||
player.CoverUrl = res.CoverUrl;
|
||||
|
Reference in New Issue
Block a user