TrinityCore
Loading...
Searching...
No Matches
PetPackets.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef PetPackets_h__
19#define PetPackets_h__
20
21#include "Packet.h"
22#include "PetDefines.h"
23#include "Position.h"
24#include "ObjectGuid.h"
25
26namespace WorldPackets
27{
28 namespace Pet
29 {
31 {
32 public:
34
35 void Read() override;
36
38 };
39
41 {
42 public:
44
45 void Read() override;
46
48 };
49
51 {
52 public:
54
55 void Read() override;
56
58 };
59
61 {
62 public:
64
65 void Read() override;
66
69 bool AutocastEnabled = false;
70 };
71
73 {
74 public:
76
77 WorldPacket const* Write() override;
78
80 };
81
83 {
84 public:
86
87 WorldPacket const* Write() override;
88
90 };
91
93 {
94 public:
96
97 void Read() override { }
98 };
99
110
112 {
113 public:
115
116 WorldPacket const* Write() override;
117
120 };
121
132 }
133}
134
135#endif // PetPackets_h__
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
PetActionFeedback
Definition PetDefines.h:71
Action
Definition Pet.h:40
DismissCritter(WorldPacket &&packet)
Definition PetPackets.h:33
PetAbandon(WorldPacket &&packet)
Definition PetPackets.h:43
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
TaggedPosition< Position::XYZ > ModelPosition
Definition PetPackets.h:130
WorldPacket const * Write() override
PetSpellAutocast(WorldPacket &&packet)
Definition PetPackets.h:63
PetStopAttack(WorldPacket &&packet)
Definition PetPackets.h:53
WorldPacket const * Write() override
RequestPetInfo(WorldPacket &&packet)
Definition PetPackets.h:95
@ CMSG_PET_STOP_ATTACK
Definition Opcodes.h:775
@ CMSG_PET_ABANDON
Definition Opcodes.h:403
@ SMSG_PET_ACTION_FEEDBACK
Definition Opcodes.h:739
@ CMSG_DISMISS_CRITTER
Definition Opcodes.h:1194
@ SMSG_PET_ACTION_SOUND
Definition Opcodes.h:833
@ CMSG_PET_SPELL_AUTOCAST
Definition Opcodes.h:784
@ SMSG_PET_UNLEARNED_SPELL
Definition Opcodes.h:1207
@ SMSG_PET_DISMISS_SOUND
Definition Opcodes.h:834
@ CMSG_REQUEST_PET_INFO
Definition Opcodes.h:662
@ SMSG_PET_LEARNED_SPELL
Definition Opcodes.h:1206
STL namespace.