Add achievement data structure definitions.

This commit is contained in:
Bartosz Taudul 2024-06-07 22:47:36 +02:00
parent 02ad97ff3f
commit b5fda4f456
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1,12 +1,46 @@
#ifndef __TRACYACHIEVEMENTS_HPP__ #ifndef __TRACYACHIEVEMENTS_HPP__
#define __TRACYACHIEVEMENTS_HPP__ #define __TRACYACHIEVEMENTS_HPP__
#include <stdint.h>
#include <string> #include <string>
#include <vector> #include <vector>
namespace tracy namespace tracy
{ {
namespace data
{
struct ctx
{
ImFont* big;
ImFont* small;
ImFont* fixed;
};
struct AchievementItem
{
const char* id;
const char* name;
void(*description)(const ctx&);
AchievementItem** items;
bool keepOpen;
uint64_t unlockTime;
uint64_t doneTime;
bool hideCompleted;
bool hideNew;
};
struct AchievementCategory
{
const char* id;
const char* name;
AchievementItem** items;
uint64_t unlockTime;
};
}
class AchievementsMgr class AchievementsMgr
{ {
public: public: