forked from monkey0506/agsteam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SteamAchievements.h
34 lines (28 loc) · 982 Bytes
/
SteamAchievements.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
//
// AGSteam: Steam API Plugin for AGS
// (C) 2011-2017 MonkeyMoto Productions, Inc.
//
#ifndef AGSteam_SteamAchievementss_H
#define AGSteam_SteamAchievementss_H
#include "ags2client/Cpp11Fix.h"
#include "ags2client/IClientAchievements.h"
namespace AGSteam
{
namespace Plugin
{
struct SteamAchievements_Statics;
class SteamAchievements : public AGS2Client::IClientAchievements
{
protected:
friend SteamAchievements_Statics;
DEFAULT_CTOR(SteamAchievements);
public:
DEFAULT_DTOR(SteamAchievements);
static SteamAchievements& GetSteamAchievements() noexcept;
bool ResetAchievement(char const *ID) const noexcept override; // clears/resets an achievement
bool IsAchievementAchieved(char const *ID) const noexcept override; // checks an achievement
bool SetAchievementAchieved(char const *ID) const noexcept override; // sets an achievement
};
} // namespace Plugin
} // namespace AGSteam
#endif // AGSteam_SteamAchievementss_H