mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add category getter for an achievement item.
This commit is contained in:
parent
b38ac8bfef
commit
51ee66323b
@ -136,6 +136,13 @@ data::AchievementCategory** AchievementsMgr::GetCategories() const
|
|||||||
return data::AchievementCategories;
|
return data::AchievementCategories;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data::AchievementCategory* AchievementsMgr::GetCategoryForAchievement( const char* id ) const
|
||||||
|
{
|
||||||
|
auto it = m_map.find( id );
|
||||||
|
assert( it != m_map.end() );
|
||||||
|
return it->second.category;
|
||||||
|
}
|
||||||
|
|
||||||
data::AchievementItem* AchievementsMgr::GetNextQueue()
|
data::AchievementItem* AchievementsMgr::GetNextQueue()
|
||||||
{
|
{
|
||||||
if( m_queue.empty() ) return nullptr;
|
if( m_queue.empty() ) return nullptr;
|
||||||
|
@ -61,6 +61,7 @@ public:
|
|||||||
|
|
||||||
void Achieve( const char* id );
|
void Achieve( const char* id );
|
||||||
data::AchievementCategory** GetCategories() const;
|
data::AchievementCategory** GetCategories() const;
|
||||||
|
data::AchievementCategory* GetCategoryForAchievement( const char* id ) const;
|
||||||
|
|
||||||
data::AchievementItem* GetNextQueue();
|
data::AchievementItem* GetNextQueue();
|
||||||
void PopQueue();
|
void PopQueue();
|
||||||
|
Loading…
Reference in New Issue
Block a user