Nuclide
Software Development Kit for id Tech
|
Achievements, unlockables API reference. More...
Classes | |
struct | achievement_t |
Data for an achievement definition. More... | |
Functions | |
void | Achievement_Set (string strName) |
Unlock an achievement. More... | |
void | Achievement_Clear (string strName) |
Clear an achievement (development purposes mainly). More... | |
bool | Achievement_Get (string strName) |
Returns whether or not an achievement has been achieved. More... | |
string | Achievement_GetIcon (string strName) |
Get the icon of an achievement. More... | |
float | Achievement_GetPercentage (string strName) |
STUB, returns how many other users achieved this. More... | |
void | Achievement_IndicateProgress (string strName, int iCurrent, int iMax) |
Requests an overlay to be drawn. More... | |
bool | Achievement_RequestStats (achievement_t *ptr, int count) |
Updates the achievement_t pointer with what's been achieved and what's not been achieved from a remote location. More... | |
Achievements, unlockables API reference.
The Achievements API manages the retrieval, storage and networking of game achievements.
This is a work in progress.
Clear an achievement (development purposes mainly).
strName | The name identifier of the achivement. |
bool Achievement_Get | ( | string | strName | ) |
Returns whether or not an achievement has been achieved.
strName | The name identifier of the achivement. |
Get the icon of an achievement.
strName | The name identifier of the achivement. |
STUB, returns how many other users achieved this.
strName | The name identifier of the achivement. |
Requests an overlay to be drawn.
It indicates the progression towards a particular achivement.
strName | The name identifier of the achievement. |
iCurrent | The current value of progress. |
iMax | The maximum value of progress. |
bool Achievement_RequestStats | ( | achievement_t * | ptr, |
int | count | ||
) |
Updates the achievement_t pointer with what's been achieved and what's not been achieved from a remote location.
ptr | Pointer to an achievement_t array. |