mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +00:00
Add achievement data structure definitions.
This commit is contained in:
parent
02ad97ff3f
commit
b5fda4f456
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user