forked from monkey0506/agsteam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SteamLeaderboards.h
37 lines (31 loc) · 1.09 KB
/
SteamLeaderboards.h
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
37
//
// AGSteam: Steam API Plugin for AGS
// (C) 2011-2017 MonkeyMoto Productions, Inc.
//
#ifndef AGSteam_SteamLeaderboards_H
#define AGSteam_SteamLeaderboards_H
#include "ags2client/Cpp11Fix.h"
#include "ags2client/IClientLeaderboards.h"
namespace AGSteam
{
namespace Plugin
{
struct SteamLeaderboards_Statics;
class SteamLeaderboards : public AGS2Client::IClientLeaderboards
{
private:
friend SteamLeaderboards_Statics;
DEFAULT_CTOR(SteamLeaderboards);
public:
DEFAULT_DTOR(SteamLeaderboards);
static SteamLeaderboards& GetSteamLeaderboards() noexcept;
void RequestLeaderboard(char const *leaderboardName, AGS2Client::LeaderboardScore::Type, int limit) const noexcept override;
bool UploadScore(int score) const noexcept override;
char const* GetCurrentLeaderboardName() const noexcept override;
char const* GetLeaderName(int index) const noexcept override;
int GetLeaderScore(int index) const noexcept override;
int GetLeaderCount() const noexcept override;
};
} // namespace Plugin
} // namespace AGSteam
#endif // AGSteam_SteamLeaderboards_H