iFun Engine API  1.0.0-b6053
Great Technology for Great Games
Classes | Typedefs | Enumerations | Functions
leaderboard.h File Reference
#include <funapi/player_account.h>
#include <funapi/time/wall_clock.h>
#include <funapi/types.h>
#include <sstream>
#include <vector>

Go to the source code of this file.

Classes

struct  fun::LeaderboardQueryRequest
 
struct  fun::LeaderboardQueryResponse
 
struct  fun::LeaderboardRange
 
struct  fun::LeaderboardRecord
 
struct  fun::LeaderboardResetRequest
 
struct  fun::LeaderboardResetResponse
 
struct  fun::LeaderboardResetSchedule
 
struct  fun::LeaderboardResetScheduleStatusQueryRequest
 
struct  fun::LeaderboardResetScheduleStatusQueryResponse
 
struct  fun::ScoreDeletionRequest
 
struct  fun::ScoreDeletionResponse
 
struct  fun::ScoreSubmissionRequest
 
struct  fun::ScoreSubmissionResponse
 

Typedefs

typedef std::vector< LeaderboardQueryRequest > fun::LeaderboardQueryRequestVector
 
typedef function< void(const LeaderboardQueryRequest &request, const LeaderboardQueryResponse &response, const bool &error)> fun::LeaderboardQueryResponseHandler
 
typedef function< void(const LeaderboardQueryRequestVector &requests, const LeaderboardQueryResponseVector &responses, const bool &error)> fun::LeaderboardQueryResponseHandler2
 
typedef std::vector< LeaderboardQueryResponse > fun::LeaderboardQueryResponseVector
 
typedef std::vector< LeaderboardRecord > fun::LeaderboardRecordVector
 
typedef function< void(const LeaderboardResetRequest &request, const LeaderboardResetResponse &response, const bool &error)> fun::LeaderboardResetResponseHandler
 
typedef function< void(const LeaderboardResetScheduleStatusQueryRequest &request, const LeaderboardResetScheduleStatusQueryResponse &response, const bool &error)> fun::LeaderboardResetScheduleStatusQueryResponseHandler
 
typedef std::vector< LeaderboardResetSchedule > fun::LeaderboardResetScheduleVector
 
typedef std::vector< ScoreDeletionRequest > fun::ScoreDeletionRequestVector
 
typedef function< void(const ScoreDeletionRequestVector &requests, const ScoreDeletionResponseVector &responses, const bool &error)> fun::ScoreDeletionResponseHandler
 
typedef std::vector< ScoreDeletionResponse > fun::ScoreDeletionResponseVector
 
typedef function< void(const ScoreSubmissionRequest &request, const ScoreSubmissionResponse &response, const bool &error)> fun::ScoreSubmissionResponseHandler
 

Enumerations

enum  LeaderboardCollection { kSocial = 1, kPublic = 2 }
 
enum  LeaderboardScoreSubmissionResult {
  kNone = 1, kNewRecord = 2, kNewRecordDaily = 3, kNewRecordWeekly = 4,
  kNewRecordMonthly = 5
}
 
enum  LeaderboardTimespan {
  kAllTime = 1, kDaily = 2, kWeekly = 3, kMonthly = 6,
  kYesterday = 5, kLastWeek = 4, kLastMonth = 7
}
 

Functions

FUNAPI_DLL_VISIBILITY void fun::DeleteScore (const ScoreDeletionRequestVector &requests, const ScoreDeletionResponseHandler &handler, const string &tag="")
 
FUNAPI_DLL_VISIBILITY bool fun::DeleteScoreSync (const ScoreDeletionRequestVector &requests, ScoreDeletionResponseVector *responses, const string &tag="")
 
FUNAPI_DLL_VISIBILITY void fun::GetLeaderboard (const LeaderboardQueryRequest &request, const LeaderboardQueryResponseHandler &handler, const string &tag="")
 
FUNAPI_DLL_VISIBILITY void fun::GetLeaderboard (const LeaderboardQueryRequestVector &requests, const LeaderboardQueryResponseHandler2 &handler, const string &tag="")
 
FUNAPI_DLL_VISIBILITY bool fun::GetLeaderboardResetSchedule (const string &leaderboard_id, const LeaderboardResetSchedule::Period &period, LeaderboardResetSchedule *reset_schedule, const string &tag="")
 
FUNAPI_DLL_VISIBILITY bool fun::GetLeaderboardResetSchedule (LeaderboardResetScheduleVector *reset_schedules, const string &tag="")
 
FUNAPI_DLL_VISIBILITY void fun::GetLeaderboardResetScheduleStatusQuery (const LeaderboardResetScheduleStatusQueryRequest &request, const LeaderboardResetScheduleStatusQueryResponseHandler &handler, const string &tag="")
 
FUNAPI_DLL_VISIBILITY bool fun::GetLeaderboardResetScheduleStatusQuerySync (const LeaderboardResetScheduleStatusQueryRequest &request, LeaderboardResetScheduleStatusQueryResponse *response, const string &tag="")
 
FUNAPI_DLL_VISIBILITY bool fun::GetLeaderboardSync (const LeaderboardQueryRequest &request, LeaderboardQueryResponse *response, const string &tag="")
 
FUNAPI_DLL_VISIBILITY bool fun::GetLeaderboardSync (const LeaderboardQueryRequestVector &requests, LeaderboardQueryResponseVector *responses, const string &tag="")
 
FUNAPI_DLL_VISIBILITY void fun::ResetLeaderboard (const LeaderboardResetRequest &request, const LeaderboardResetResponseHandler &handler, const string &tag="")
 
FUNAPI_DLL_VISIBILITY void fun::SubmitScore (const ScoreSubmissionRequest &request, const ScoreSubmissionResponseHandler &handler, const string &tag="")
 
FUNAPI_DLL_VISIBILITY bool fun::SubmitScoreSync (const ScoreSubmissionRequest &request, ScoreSubmissionResponse *response, const string &tag="")