forked from monkey0506/agsteam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AGSteamPlugin.h
43 lines (37 loc) · 1.3 KB
/
AGSteamPlugin.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
38
39
40
41
42
43
//
// AGSteam: Steam API Plugin for AGS
// (C) 2011-2017 MonkeyMoto Productions, Inc.
//
#ifndef AGSTEAM_AGSTEAMPLUGIN_H
#define AGSTEAM_AGSTEAMPLUGIN_H
#include "ags2client/Cpp11Fix.h"
#include "ags2client/IAGS2Client.h"
namespace AGSteam
{
namespace Plugin
{
struct AGSteamPlugin_Statics;
class AGSteamPlugin : public AGS2Client::IAGS2Client
{
protected:
friend AGSteamPlugin_Statics;
DEFAULT_CTOR(AGSteamPlugin);
public:
DEFAULT_DTOR(AGSteamPlugin);
static AGSteamPlugin& GetAGSteamPlugin() noexcept;
bool IsInitialized() const noexcept override;
void ResetStatsAndAchievements() const noexcept override;
char const* GetCurrentGameLanguage() const noexcept override;
char const* GetUserName() const noexcept override;
void Startup() const noexcept override;
void Shutdown() const noexcept override;
void Update() const noexcept override;
char const* GetAGSPluginName() const noexcept override;
char const* GetAGSPluginDesc() const noexcept override;
float GetVersion() const noexcept override;
bool ClaimKeyPress(int data, int(*IsKeyPressed)(int)) const noexcept override;
void RegisterScriptFunctions(IAGSEngine *engine) const noexcept override;
};
} // namespace Plugin
} // namespace AGSteam
#endif // AGSTEAM_AGSTEAMPLUGIN_H