mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 13:41:06 +03:00
feat(ui): add CGPartyInfo::NumMembers
This commit is contained in:
parent
66df4c55da
commit
d210df2f43
15
src/ui/game/CGPartyInfo.cpp
Normal file
15
src/ui/game/CGPartyInfo.cpp
Normal 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;
|
||||
}
|
||||
16
src/ui/game/CGPartyInfo.hpp
Normal file
16
src/ui/game/CGPartyInfo.hpp
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user