Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Statistics bindable to IAPIProvider and update it from SoloStatisticsWatcher #26356

Merged
merged 2 commits into from Jan 15, 2024

Conversation

stanriders
Copy link
Member

Prereq for #26340

@@ -126,6 +134,11 @@ public void Logout()
LocalUser.Value = new GuestUser();
}

public void UpdateStatistics(UserStatistics newStatistics)
{
Statistics.Value = newStatistics;
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might want to set the statistics on LocalUser for consistency.

Untested sample code:

Suggested change
Statistics.Value = newStatistics;
if (IsLoggedIn)
LocalUser.Value.Statistics = newStatistics;
Statistics.Value = newStatistics;

@peppy peppy merged commit a3b6339 into ppy:master Jan 15, 2024
15 of 17 checks passed
@stanriders stanriders deleted the global-user-statistics branch January 15, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants