the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 35 lines 1.1 kB view raw
1#pragma once 2 3#include "LeaderboardManager.h" 4 5// 4J-JEV: Simple interface for handling ReadStat failures. 6class LeaderboardInterface 7{ 8private: 9 LeaderboardManager *m_manager; 10 bool m_pending; 11 12 // Arguments. 13 LeaderboardManager::EFilterMode m_filter; 14 LeaderboardReadListener *m_callback; 15 int m_difficulty; 16 LeaderboardManager::EStatsType m_type; 17 PlayerUID m_myUID; 18 unsigned int m_startIndex; 19 unsigned int m_readCount; 20 21public: 22 LeaderboardInterface(LeaderboardManager *man); 23 ~LeaderboardInterface(); 24 25 void ReadStats_Friends(LeaderboardReadListener *callback, int difficulty, LeaderboardManager::EStatsType type, PlayerUID myUID, unsigned int startIndex, unsigned int readCount); 26 void ReadStats_MyScore(LeaderboardReadListener *callback, int difficulty, LeaderboardManager::EStatsType type, PlayerUID myUID, unsigned int readCount); 27 void ReadStats_TopRank(LeaderboardReadListener *callback, int difficulty, LeaderboardManager::EStatsType type, unsigned int startIndex, unsigned int readCount); 28 29 void CancelOperation(); 30 31 void tick(); 32 33private: 34 bool callManager(); 35};