aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Windows64/Leaderboards/WindowsLeaderboardManager.h
blob: 4141e3f95406f33f0711e741399da175bb0988c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once

#include "Common\Leaderboards\LeaderboardManager.h"

class WindowsLeaderboardManager : public LeaderboardManager
{
public:
	virtual void Tick() {}

	//Open a session
	virtual bool OpenSession() { return true; }

	//Close a session
	virtual void CloseSession() {}

	//Delete a session
	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 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; }

	//Perform a flush of the stats
	virtual void FlushStats() {}

	//Cancel the current operation
	virtual void CancelOperation() {}

	//Is the leaderboard manager idle.
	virtual bool isIdle() { return true; }
};