From b5fda4f456089990738c72daba8d0df7ac934356 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 7 Jun 2024 22:47:36 +0200 Subject: [PATCH] Add achievement data structure definitions. --- profiler/src/profiler/TracyAchievements.hpp | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/profiler/src/profiler/TracyAchievements.hpp b/profiler/src/profiler/TracyAchievements.hpp index 3130cf5a..83961c5b 100644 --- a/profiler/src/profiler/TracyAchievements.hpp +++ b/profiler/src/profiler/TracyAchievements.hpp @@ -1,12 +1,46 @@ #ifndef __TRACYACHIEVEMENTS_HPP__ #define __TRACYACHIEVEMENTS_HPP__ +#include #include #include 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 { public: