TrinityCore
Loading...
Searching...
No Matches
PetPackets.cpp
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#include "PetPackets.h"
19
24
26{
27 _worldPacket >> PetGUID;
28}
29
31{
32 _worldPacket >> PetGUID;
33}
34
36{
37 _worldPacket >> PetGUID;
38 _worldPacket >> SpellID;
39 _worldPacket >> AutocastEnabled;
40}
41
43{
44 _worldPacket << uint32(SpellID);
45 return &_worldPacket;
46}
47
49{
50 _worldPacket << uint32(SpellID);
51 return &_worldPacket;
52}
53
55{
56 _worldPacket << uint8(Response);
58 _worldPacket << int32(SpellID);
59
60 return &_worldPacket;
61}
62
64{
65 _worldPacket << UnitGUID;
66 _worldPacket << int32(Action);
67
68 return &_worldPacket;
69}
70
72{
73 _worldPacket << int32(ModelId);
74 _worldPacket << ModelPosition;
75
76 return &_worldPacket;
77}
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
Action
WorldPacket _worldPacket
Definition Packet.h:42
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override