mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Merge branch '4jcraft:dev' into dev
This commit is contained in:
commit
1a261de1ba
|
|
@ -9,8 +9,6 @@ const std::wstring LeaderboardManager::filterNames[eNumFilterModes] =
|
||||||
L"Friends", L"MyScore", L"TopRank"
|
L"Friends", L"MyScore", L"TopRank"
|
||||||
};
|
};
|
||||||
|
|
||||||
LeaderboardManager *LeaderboardManager::m_instance = NULL;
|
|
||||||
|
|
||||||
void LeaderboardManager::DeleteInstance()
|
void LeaderboardManager::DeleteInstance()
|
||||||
{
|
{
|
||||||
delete m_instance;
|
delete m_instance;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
#include "../../../../Minecraft.World/Platform/stdafx.h"
|
||||||
|
|
||||||
|
#include "LinuxLeaderboardManager.h"
|
||||||
|
|
||||||
|
LeaderboardManager *LeaderboardManager::m_instance = new LinuxLeaderboardManager(); //Singleton instance of the LeaderboardManager
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../../Common/Leaderboards/LeaderboardManager.h"
|
||||||
|
|
||||||
|
class LinuxLeaderboardManager : 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; }
|
||||||
|
};
|
||||||
Loading…
Reference in a new issue