|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <ctime>#include <string>#include <vector>Namespaces | |
| namespace | KODI |
| namespace | KODI::GAME |
Functions | |
| bool | KODI::GAME::IsTimeFormat (const std::string &format) |
| Turn a raw leaderboard value into something readable. | |
| std::string | KODI::GAME::FormatLeaderboardScore (int score, const std::string &format) |
| std::string | KODI::GAME::FormatRelativeDate (std::time_t submitted, std::time_t now) |
| How long ago something was submitted, in words. | |
| std::string | KODI::GAME::RankMedal (unsigned int rank) |
| Which medal a place on a leaderboard earns, if any. | |
| void | KODI::GAME::SaveLeaderboardEntries (unsigned int leaderboardId, const std::string &account, const std::vector< LeaderboardEntry > &entries) |
| Remember a leaderboard's standings between sessions. | |
| bool | KODI::GAME::LoadLeaderboardEntries (unsigned int leaderboardId, const std::string &account, std::vector< LeaderboardEntry > &entries) |
| Read back standings kept from a previous session. | |
| void | KODI::GAME::ForgetLeaderboardEntries (unsigned int leaderboardId) |
| Forget a leaderboard's kept standings. | |
| void | KODI::GAME::ClearLeaderboardEntries () |
| Forget every leaderboard's kept standings. | |