2022-07-07 09:10:14 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016-2022 Vera Visions LLC.
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
|
|
|
|
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2021-11-20 08:27:52 -08:00
|
|
|
/* unlock an achievement */
|
|
|
|
void
|
|
|
|
Achievement_Set(string strName)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/* clea an achievement (development purposes mainly) */
|
|
|
|
void
|
|
|
|
Achievement_Clear(string strName)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/* returns whether or not an achievement has been achieved */
|
2022-12-30 00:15:10 -08:00
|
|
|
bool
|
2021-11-20 08:27:52 -08:00
|
|
|
Achievement_Get(string strName)
|
|
|
|
{
|
2022-02-01 13:37:21 -08:00
|
|
|
return 0;
|
2021-11-20 08:27:52 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* get the icon of an achievement */
|
|
|
|
string
|
|
|
|
Achievement_GetIcon(string strName)
|
|
|
|
{
|
2022-02-01 13:37:21 -08:00
|
|
|
return __NULL__;
|
2021-11-20 08:27:52 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* STUB, returns how many other users achieved this */
|
|
|
|
float
|
|
|
|
Achievement_GetPercentage(string strName)
|
|
|
|
{
|
2022-02-01 13:37:21 -08:00
|
|
|
return 0.0f;
|
2021-11-20 08:27:52 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* called when you want to show a pop-up indicating progress */
|
|
|
|
void
|
|
|
|
Achievement_IndicateProgress(string strName, int iCurrent, int iMax)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/* updates the achievement_t pointer with what's been achieved and what's not been achieved */
|
2022-12-30 11:54:07 -08:00
|
|
|
bool
|
2021-11-20 08:27:52 -08:00
|
|
|
Achievement_RequestStats(achievement_t *ptr, int count)
|
|
|
|
{
|
2023-02-14 12:54:06 -08:00
|
|
|
return false;
|
2021-11-20 08:27:52 -08:00
|
|
|
}
|