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:
Salman Ahmed
2022-06-18 01:46:37 +03:00
parent b977ce7995
commit 60903be566
4 changed files with 11 additions and 12 deletions

View File

@ -280,10 +280,10 @@ namespace osu.Game.Tournament.Screens.Editors
[BackgroundDependencyLoader]
private void load()
{
playerId.Value = player.Id;
playerId.Value = player.OnlineID;
playerId.BindValueChanged(id =>
{
player.Id = id.NewValue ?? 0;
player.OnlineID = id.NewValue ?? 0;
if (id.NewValue != id.OldValue)
player.Username = string.Empty;