mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-05 04:33:51 +00:00
Implement SMSG_STANDSTATE_UPDATE and SMSG_ITEM_PUSH_RESULT handlers
SMSG_STANDSTATE_UPDATE: - Parse uint8 stand state from server confirmation packet - Store in standState_ member (0=stand, 7=dead, 8=kneel, etc.) - Expose getStandState(), isSitting(), isDead(), isKneeling() accessors SMSG_ITEM_PUSH_RESULT: - Parse full WotLK 3.3.5a payload: guid, received, created, showInChat, bagSlot, itemSlot, itemId, suffixFactor, randomPropertyId, count, totalCount - Show "Received: <name> x<count>" chat notification when showInChat=1 - Queue item info lookup via queryItemInfo so name resolves asap
This commit is contained in:
parent
bae32c1823
commit
b0d7dbc32c
2 changed files with 43 additions and 6 deletions
|
|
@ -332,6 +332,10 @@ public:
|
|||
|
||||
// Stand state
|
||||
void setStandState(uint8_t state); // 0=stand, 1=sit, 2=sit_chair, 3=sleep, 4=sit_low_chair, 5=sit_medium_chair, 6=sit_high_chair, 7=dead, 8=kneel, 9=submerged
|
||||
uint8_t getStandState() const { return standState_; }
|
||||
bool isSitting() const { return standState_ >= 1 && standState_ <= 6; }
|
||||
bool isDead() const { return standState_ == 7; }
|
||||
bool isKneeling() const { return standState_ == 8; }
|
||||
|
||||
// Display toggles
|
||||
void toggleHelm();
|
||||
|
|
@ -1381,6 +1385,7 @@ private:
|
|||
// ---- Display state ----
|
||||
bool helmVisible_ = true;
|
||||
bool cloakVisible_ = true;
|
||||
uint8_t standState_ = 0; // 0=stand, 1=sit, ..., 7=dead, 8=kneel (server-confirmed)
|
||||
|
||||
// ---- Follow state ----
|
||||
uint64_t followTargetGuid_ = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue