GOG GALAXY SDK Documentation
|
Listener for the event of updating score in a leaderboard. More...
#include <IStats.h>
Public Types | |
enum | FailureReason { FAILURE_REASON_UNDEFINED , FAILURE_REASON_NO_IMPROVEMENT , FAILURE_REASON_CONNECTION_FAILURE } |
The reason of a failure in updating score in a leaderboard. More... | |
Public Member Functions | |
virtual void | OnLeaderboardScoreUpdateSuccess (const char *name, int32_t score, uint32_t oldRank, uint32_t newRank)=0 |
Notification for the event of a success in setting score in a leaderboard. More... | |
virtual void | OnLeaderboardScoreUpdateFailure (const char *name, int32_t score, FailureReason failureReason)=0 |
The reason of a failure in updating score in a leaderboard. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from GalaxyTypeAwareListener< LEADERBOARD_SCORE_UPDATE_LISTENER > | |
static ListenerType | GetListenerType () |
Returns the type of the listener. More... | |
Listener for the event of updating score in a leaderboard.
enum FailureReason |
|
pure virtual |
The reason of a failure in updating score in a leaderboard.
[in] | name | The name of the leaderboard. |
[in] | score | The score that was attempted to set. |
[in] | failureReason | The cause of the failure. |
|
pure virtual |
Notification for the event of a success in setting score in a leaderboard.
[in] | name | The name of the leaderboard. |
[in] | score | The score after the update. |
[in] | oldRank | Previous rank, i.e. before the update; 0 if the user had no entry yet. |
[in] | newRank | Current rank, i.e. after the update. |