mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-26 00:40:15 +00:00
Add pet tracking via SMSG_PET_SPELLS and dismiss pet button
This commit is contained in:
parent
a1f73fdd39
commit
74b78cd10b
5 changed files with 45 additions and 2 deletions
|
|
@ -441,6 +441,9 @@ public:
|
|||
void castSpell(uint32_t spellId, uint64_t targetGuid = 0);
|
||||
void cancelCast();
|
||||
void cancelAura(uint32_t spellId);
|
||||
void dismissPet();
|
||||
bool hasPet() const { return petGuid_ != 0; }
|
||||
uint64_t getPetGuid() const { return petGuid_; }
|
||||
const std::unordered_set<uint32_t>& getKnownSpells() const { return knownSpells; }
|
||||
bool isCasting() const { return casting; }
|
||||
bool isGameObjectInteractionCasting() const {
|
||||
|
|
@ -1137,6 +1140,7 @@ private:
|
|||
void handleGuildInvite(network::Packet& packet);
|
||||
void handleGuildCommandResult(network::Packet& packet);
|
||||
void handlePetitionShowlist(network::Packet& packet);
|
||||
void handlePetSpells(network::Packet& packet);
|
||||
void handleTurnInPetitionResults(network::Packet& packet);
|
||||
|
||||
// ---- Character creation handler ----
|
||||
|
|
@ -1475,6 +1479,7 @@ private:
|
|||
std::array<ActionBarSlot, 12> actionBar{};
|
||||
std::vector<AuraSlot> playerAuras;
|
||||
std::vector<AuraSlot> targetAuras;
|
||||
uint64_t petGuid_ = 0;
|
||||
|
||||
// ---- Phase 4: Group ----
|
||||
GroupListData partyData;
|
||||
|
|
|
|||
|
|
@ -1698,6 +1698,12 @@ public:
|
|||
static network::Packet build(uint32_t spellId);
|
||||
};
|
||||
|
||||
/** CMSG_PET_ACTION packet builder */
|
||||
class PetActionPacket {
|
||||
public:
|
||||
static network::Packet build(uint64_t petGuid, uint32_t action);
|
||||
};
|
||||
|
||||
/** SMSG_CAST_FAILED data */
|
||||
struct CastFailedData {
|
||||
uint8_t castCount = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue