the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Common\Leaderboards\LeaderboardManager.h"
4
5class WindowsLeaderboardManager : public LeaderboardManager
6{
7public:
8 virtual void Tick() {}
9
10 //Open a session
11 virtual bool OpenSession() { return true; }
12
13 //Close a session
14 virtual void CloseSession() {}
15
16 //Delete a session
17 virtual void DeleteSession() {}
18
19 //Write the given stats
20 //This is called synchronously and will not free any memory allocated for views when it is done
21
22 virtual bool WriteStats(unsigned int viewCount, ViewIn views) { return false; }
23
24 virtual bool ReadStats_Friends(LeaderboardReadListener *callback, int difficulty, EStatsType type, PlayerUID myUID) { return false; }
25 virtual bool ReadStats_MyScore(LeaderboardReadListener *callback, int difficulty, EStatsType type, PlayerUID myUID, unsigned int readCount) { return false; }
26 virtual bool ReadStats_TopRank(LeaderboardReadListener *callback, int difficulty, EStatsType type, unsigned int startIndex, unsigned int readCount) { return false; }
27
28 //Perform a flush of the stats
29 virtual void FlushStats() {}
30
31 //Cancel the current operation
32 virtual void CancelOperation() {}
33
34 //Is the leaderboard manager idle.
35 virtual bool isIdle() { return true; }
36};