HIVE SDK for C++

HIVE_ProviderApple.h
이 파일의 문서화 페이지로 가기
1
18#ifndef __HIVE_PROVIDERAPPLE_H__
19#define __HIVE_PROVIDERAPPLE_H__
20
21
22#include "HIVE_ResultAPI.h"
23
24NS_HIVE_BEGIN
25
27/*
28* \~korean Apple GameCenter의 업적 및 리더보드 기능을 제공한다.<br />
29* \~english It provides Apple GameCenter achievements and leaderboard <br />
30* @author Arkeo Lucid
31* @since 4.3.0
32* @ingroup ProviderApple
33*/
34class HIVESDK_DLLEXPORT ProviderApple {
35public:
36
53 typedef std::function<void(ResultAPI const & result)> onReportLeaderboard;
54
71 typedef std::function<void(ResultAPI const & result)> onShowLeaderboard;
72
90 typedef std::function<void(ResultAPI const & result,std::vector<ProviderAppleAchievement> const & achievements)> onLoadAchievements;
91
109 typedef std::function<void(ResultAPI const & result)> onReportAchievement;
110
128 typedef std::function<void(ResultAPI const & result)> onShowAchievement;
129
147 typedef std::function<void(ResultAPI const & result)> onResetAchievements;
148
149
172 static void reportScore(std::string score,std::string leaderboardIdentifier,onReportLeaderboard listener);
173
188 static void showLeaderboard(onShowLeaderboard listener);
189
204 static void loadAchievements(onLoadAchievements listener);
205
230 static void reportAchievement(std::string percent,bool showsCompletionBanner,std::string achievementIdentifier,onReportAchievement listener);
231
246 static void showAchievements(onShowAchievement listener);
247
263
264 static void executeEngine(picojson::value jsonParam);
265};
266
272class HIVESDK_DLLEXPORT ProviderAppleAchievement {
273public:
276
277 std::string identifier;
278 std::string percent;
280};
281
282NS_HIVE_END
283
284#endif //__HIVE_PROVIDERAPPLE_H__
Apple GameCenter 업적 정보
Definition: HIVE_ProviderApple.h:272
std::string identifier
업적 identifier.
Definition: HIVE_ProviderApple.h:277
std::string percent
업적 진행 percent value.
Definition: HIVE_ProviderApple.h:278
bool completed
업적 완료 여부.
Definition: HIVE_ProviderApple.h:279
Definition: HIVE_ResultAPI.h:63
static void resetAchievements(onResetAchievements listener)
Apple GameCenter 업적 정보를 초기화한다.
std::function< void(ResultAPI const &result)> onResetAchievements
Apple GameCenter 업적 초기화 result handler.
Definition: HIVE_ProviderApple.h:147
static void reportScore(std::string score, std::string leaderboardIdentifier, onReportLeaderboard listener)
Apple GameCenter Leaderboard에 기록을 전송한다.
std::function< void(ResultAPI const &result)> onReportLeaderboard
Apple GameCenter 리더보드 전송 result handler.
Definition: HIVE_ProviderApple.h:53
std::function< void(ResultAPI const &result)> onShowAchievement
Apple GameCenter 업적 UI 노출 result handler.
Definition: HIVE_ProviderApple.h:128
static void showAchievements(onShowAchievement listener)
Apple GameCenter 업적 UI를 노출한다.
static void loadAchievements(onLoadAchievements listener)
Apple GameCenter 업적을 로드한다.
static void reportAchievement(std::string percent, bool showsCompletionBanner, std::string achievementIdentifier, onReportAchievement listener)
Apple GameCenter 업적을 전송한다.
static void showLeaderboard(onShowLeaderboard listener)
Apple GameCenter Leaderboard UI를 노출한다.
std::function< void(ResultAPI const &result)> onShowLeaderboard
Apple GameCenter 리더보드 UI 노출 result handler.
Definition: HIVE_ProviderApple.h:71
std::function< void(ResultAPI const &result)> onReportAchievement
Apple GameCenter 업적을 전송 result handler.
Definition: HIVE_ProviderApple.h:109
Copyright © Com2uS Platform Corporation. All Right Reserved. 이용약관 개인정보 처리방침