Skip to content

QUDOGame

Class in QUDOSDK

Properties

The achievements from this game
Example
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/*
* Prints all game achievements to the console
*/
void PrintGameAchievements()
{
    foreach (var achievement in QUDOGame.Achievements)
    {
        Debug.Log(achievement.Name);
    }
}
The highscores from this game
Example
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/*
* Prints all game highscores to the console
*/
void PrintGameHighscores()
{
    foreach (var highscore in QUDOGame.Highscores)
    {
        Debug.Log(highscore.Name);
    }
}
The products from this game
Example
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/*
* Prints all game products to the console
*/
void PrintGameProducts()
{
    foreach (var product in QUDOGame.Products)
    {
        Debug.Log(product.Name);
    }
}
The list of this game's top players
Example
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/*
* Prints the top players score to the console
*/
void PrintTopPlayers()
{
    foreach (var player in QUDOGame.TopPlayers)
    {
        Debug.Log($"{player.Username}: {player.Score}");
    }
}

Methods

Get the leaderboard for a specific highscore alias
Example
1
2
3
4
5
6
7
8
// Prints the leaderboard for a specific highscore alias to the console
void PrintLeaderboard()
{
    foreach (var leaderboard in QUDOGame.GetLeaderboard("highscore-alias"))
    {
        Debug.Log($"{leaderboard.Username}: {leaderboard.Score}");
    }
}
Notify the user of missed QUDO that could've been earned if the player was logged in
Example
1
2
3
4
void NotifyMissedQUDO()
{
    QUDOGame.NotifyMissedQUDO("highscore-alias", 10);
}