diff --git a/src/ui/game/CGPartyInfo.cpp b/src/ui/game/CGPartyInfo.cpp new file mode 100644 index 0000000..36f4ed3 --- /dev/null +++ b/src/ui/game/CGPartyInfo.cpp @@ -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; +} diff --git a/src/ui/game/CGPartyInfo.hpp b/src/ui/game/CGPartyInfo.hpp new file mode 100644 index 0000000..5a9ffe5 --- /dev/null +++ b/src/ui/game/CGPartyInfo.hpp @@ -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