mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: parse MSG_INSPECT_ARENA_TEAMS and display in inspect window
Implements MSG_INSPECT_ARENA_TEAMS (WotLK): reads the inspected player's arena team data (2v2/3v3/5v5 bracket, team name, personal rating, week/season W-L) and stores it in InspectResult.arenaTeams. The inspect window now shows an "Arena Teams" section below the gear list when arena team data is available, displaying bracket, team name, rating, and win/loss record. Also implement SMSG_COMPLAIN_RESULT with user-visible feedback for report-player results.
This commit is contained in:
parent
a1edddd1f0
commit
758ca76bd3
3 changed files with 76 additions and 4 deletions
|
|
@ -339,6 +339,16 @@ public:
|
|||
// Inspection
|
||||
void inspectTarget();
|
||||
|
||||
struct InspectArenaTeam {
|
||||
uint32_t teamId = 0;
|
||||
uint8_t type = 0; // bracket size: 2, 3, or 5
|
||||
uint32_t weekGames = 0;
|
||||
uint32_t weekWins = 0;
|
||||
uint32_t seasonGames = 0;
|
||||
uint32_t seasonWins = 0;
|
||||
std::string name;
|
||||
uint32_t personalRating = 0;
|
||||
};
|
||||
struct InspectResult {
|
||||
uint64_t guid = 0;
|
||||
std::string playerName;
|
||||
|
|
@ -348,6 +358,7 @@ public:
|
|||
uint8_t activeTalentGroup = 0;
|
||||
std::array<uint32_t, 19> itemEntries{}; // 0=head…18=ranged
|
||||
std::array<uint16_t, 19> enchantIds{}; // permanent enchant per slot (0 = none)
|
||||
std::vector<InspectArenaTeam> arenaTeams; // from MSG_INSPECT_ARENA_TEAMS (WotLK)
|
||||
};
|
||||
const InspectResult* getInspectResult() const {
|
||||
return inspectResult_.guid ? &inspectResult_ : nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue