Combu  3.2.2
Unity API Documentation
Public Member Functions | Properties | List of all members
Combu.Score Class Reference
Inheritance diagram for Combu.Score:

Public Member Functions

 Score (string idLeaderboard, int rank, User user, double score)
 
 Score (string idLeaderboard, string codeLeaderboard, int rank, User user, double score)
 
void Initialize (string idLeaderboard, int rank, Profile user, double score)
 Initialize this Score with the specified idLeaderboard, rank, user and score. More...
 
void Initialize (string idLeaderboard, string codeLeaderboard, int rank, Profile user, double score)
 Initialize this Score with the specified idLeaderboard, rank, user and score. More...
 
void ReportScore (Action< bool > callback)
 Reports the score. More...
 

Properties

string leaderboardID [get, set]
 
string leaderboardCode [get, set]
 
DateTime date [get]
 
string formattedValue [get]
 
string? userID [get]
 
Profile user [get]
 
int rank [get]
 
long value [get, set]
 
float valueFloat [get, set]
 
double valueDouble [get, set]
 

Member Function Documentation

◆ Initialize() [1/2]

void Combu.Score.Initialize ( string  idLeaderboard,
int  rank,
Profile  user,
double  score 
)

Initialize this Score with the specified idLeaderboard, rank, user and score.

Parameters
idLeaderboardIdentifier leaderboard.
rankRank.
userUser.
scoreScore.

◆ Initialize() [2/2]

void Combu.Score.Initialize ( string  idLeaderboard,
string  codeLeaderboard,
int  rank,
Profile  user,
double  score 
)

Initialize this Score with the specified idLeaderboard, rank, user and score.

Parameters
idLeaderboardIdentifier of the leaderboard.
codeLeaderboardCode of the leaderboard.
rankRank.
userUser.
scoreScore.

◆ ReportScore()

void Combu.Score.ReportScore ( Action< bool >  callback)

Reports the score.

Parameters
callbackCallback.