feat(ui): add CGPartyInfo::NumMembers

This commit is contained in:
fallenoak 2026-02-09 04:56:46 -06:00
parent 66df4c55da
commit d210df2f43
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#include "ui/game/CGPartyInfo.hpp"
WOWGUID CGPartyInfo::m_members[4];
uint32_t CGPartyInfo::NumMembers() {
uint32_t count = 0;
for (auto& member : CGPartyInfo::m_members) {
if (member != 0) {
count++;
}
}
return count;
}

View File

@ -0,0 +1,16 @@
#ifndef UI_GAME_C_G_PARTY_INFO_HPP
#define UI_GAME_C_G_PARTY_INFO_HPP
#include "util/GUID.hpp"
class CGPartyInfo {
public:
// Public static functions
static uint32_t NumMembers();
private:
// Private static variables
static WOWGUID m_members[];
};
#endif