fix: player list count, leaderboard stubs

This commit is contained in:
qloak committed 2026-07-14 12:16:55 -07:00
1 parent 43b9d829c8
commit 0eea592b86
10 files changed
+34 -16

No files matched your search

@@ -17,13 +17,23 @@ public:
virtual void DeleteSession() {}
//Write the given stats
//This is called synchronously and will not free any memory allocated for views when it is done
virtual bool WriteStats(unsigned int viewCount, ViewIn views) { return true; }
virtual bool WriteStats(unsigned int viewCount, ViewIn views) { return false; }
virtual bool ReadStats_Friends(LeaderboardReadListener *callback, int difficulty, EStatsType type, PlayerUID myUID) { return false; }
virtual bool ReadStats_MyScore(LeaderboardReadListener *callback, int difficulty, EStatsType type, PlayerUID myUID, unsigned int readCount) { return false; }
virtual bool ReadStats_TopRank(LeaderboardReadListener *callback, int difficulty, EStatsType type, unsigned int startIndex, unsigned int readCount) { return false; }
virtual bool ReadStats_Friends(LeaderboardReadListener *callback, int difficulty, EStatsType type, PlayerUID myUID, unsigned int startIndex, unsigned int readCount) {
ReadView view = { 0, NULL };
callback->OnStatsReadComplete(eStatsReturn_Success, 0, view);
return true;
}
virtual bool ReadStats_MyScore(LeaderboardReadListener *callback, int difficulty, EStatsType type, PlayerUID myUID, unsigned int readCount) {
ReadView view = { 0, NULL };
callback->OnStatsReadComplete(eStatsReturn_Success, 0, view);
return true;
}
virtual bool ReadStats_TopRank(LeaderboardReadListener *callback, int difficulty, EStatsType type, unsigned int startIndex, unsigned int readCount) {
ReadView view = { 0, NULL };
callback->OnStatsReadComplete(eStatsReturn_Success, 0, view);
return true;
}
//Perform a flush of the stats
virtual void FlushStats() {}