Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

Payload of the achievement progress indicator callbacks More...

#include <game.h>

Public Attributes

unsigned int id
 Unique RetroAchievements ID of the achievement.
 
const char * title
 Title of the achievement, or NULL if unknown.
 
const char * badge_url
 URL of the achievement's badge, or NULL
 
const char * measured_progress
 How far along, already formatted - "13/180" - or NULL
 
float measured_percent
 How far along as a percentage, 0.0 to 100.0.
 

Detailed Description

Payload of the achievement progress indicator callbacks

Some achievements are measured rather than simply locked or unlocked - "collect 180 rings", "survive 120 seconds" - and the runtime reports how far along one is while the player is working on it.

Distinct from the challenge indicator, which says an attempt is live without saying how far through it is.

Member Data Documentation

◆ badge_url

const char* game_rc_achievement_progress_indicator::badge_url

URL of the achievement's badge, or NULL

◆ id

unsigned int game_rc_achievement_progress_indicator::id

Unique RetroAchievements ID of the achievement.

◆ measured_percent

float game_rc_achievement_progress_indicator::measured_percent

How far along as a percentage, 0.0 to 100.0.

Sent alongside the text so a frontend can draw a bar without having to parse "13/180" back into numbers.

◆ measured_progress

const char* game_rc_achievement_progress_indicator::measured_progress

How far along, already formatted - "13/180" - or NULL

Formatted by the client because only it knows the units, so this is shown as given rather than interpreted.

◆ title

const char* game_rc_achievement_progress_indicator::title

Title of the achievement, or NULL if unknown.


The documentation for this struct was generated from the following file: