Implement leaderboard page offsets

This commit is contained in:
EmosewaMC
2023-05-08 19:35:19 -07:00
parent 5c086909ed
commit d98ad4b94f
5 changed files with 23 additions and 27 deletions

View File

@@ -64,12 +64,12 @@ public:
/**
* Builds the leaderboard from the database based on the associated gameID
*/
void SetupLeaderboard();
void SetupLeaderboard(uint32_t resultStart = 0, uint32_t resultEnd = 10);
/**
* Sends the leaderboard to the client specified by targetID.
*/
void Send(LWOOBJID targetID) const;
void Send(LWOOBJID targetID);
// Helper functions to get the columns, ordering and insert format for a leaderboard
static std::string GetColumns(Type leaderboardType);