-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement friend leaderboards (#589)
The query here is extraordinarily slow (~10s in Debug mode on my machine, with a warmed up JIT). But leaving it as a 404 causes the game to wait a full 30 seconds between requests, so even though these requests are serial in LBP, its still faster for users in the end to have it implemented. We can optimize the query after Postgres gets in.
- Loading branch information
Showing
3 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Refresh.GameServer.Types.Scores; | ||
|
||
[XmlRoot("playRecord")] | ||
public class FriendScoresRequest | ||
{ | ||
[XmlElement("playerIds")] | ||
public List<string> Usernames { get; set; } | ||
Check warning on line 9 in Refresh.GameServer/Types/Scores/FriendScoresRequest.cs GitHub Actions / Build, Test, and Upload Builds
|
||
|
||
[XmlElement("type")] | ||
public byte Type { get; set; } | ||
} |