v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
41
source/application/StarStatisticsService_pc_steam.hpp
Normal file
41
source/application/StarStatisticsService_pc_steam.hpp
Normal file
|
@ -0,0 +1,41 @@
|
|||
#ifndef STAR_STATISTICS_SERVICE_PC_STEAM_HPP
|
||||
#define STAR_STATISTICS_SERVICE_PC_STEAM_HPP
|
||||
|
||||
#include "StarPlatformServices_pc.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_CLASS(SteamStatisticsService);
|
||||
|
||||
class SteamStatisticsService : public StatisticsService {
|
||||
public:
|
||||
SteamStatisticsService(PcPlatformServicesStatePtr state);
|
||||
|
||||
bool initialized() const override;
|
||||
Maybe<String> error() const override;
|
||||
|
||||
bool setStat(String const& name, String const& type, Json const& value) override;
|
||||
Json getStat(String const& name, String const& type, Json def = {}) const override;
|
||||
|
||||
bool reportEvent(String const& name, Json const& fields) override;
|
||||
|
||||
bool unlockAchievement(String const& name) override;
|
||||
StringSet achievementsUnlocked() const override;
|
||||
|
||||
void refresh() override;
|
||||
void flush() override;
|
||||
bool reset() override;
|
||||
|
||||
private:
|
||||
STEAM_CALLBACK(SteamStatisticsService, onUserStatsReceived, UserStatsReceived_t, m_callbackUserStatsReceived);
|
||||
STEAM_CALLBACK(SteamStatisticsService, onUserStatsStored, UserStatsStored_t, m_callbackUserStatsStored);
|
||||
STEAM_CALLBACK(SteamStatisticsService, onAchievementStored, UserAchievementStored_t, m_callbackAchievementStored);
|
||||
|
||||
uint64_t m_appId;
|
||||
bool m_initialized;
|
||||
Maybe<String> m_error;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue