TrinityCore
GameObjectPackets.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 "GameObjectPackets.h"
19
21{
23}
24
26{
27 _worldPacket >> Guid;
28}
29
31{
32 _worldPacket << ObjectGUID;
33 return &_worldPacket;
34}
35
37{
38 _worldPacket << GameObjectGUID;
39 return &_worldPacket;
40}
41
43{
44 _worldPacket << ObjectGUID;
45 _worldPacket << uint32(AnimKitID);
46 _worldPacket.WriteBit(Maintain);
47 _worldPacket.FlushBits();
48
49 return &_worldPacket;
50}
51
53{
54 _worldPacket << Target;
55 _worldPacket << Owner;
56 _worldPacket << Caster;
57 _worldPacket << int32(Damage);
58 _worldPacket << int32(SpellID);
59
60 return &_worldPacket;
61}
62
64{
65 _worldPacket << ObjectGUID;
66 _worldPacket << uint32(CustomAnim);
67 _worldPacket.WriteBit(PlayAsDespawn);
68 _worldPacket.FlushBits();
69
70 return &_worldPacket;
71}
72
74{
75 _worldPacket << ObjectGUID;
76 _worldPacket << ActivatorGUID;
77 _worldPacket << int32(SpellVisualID);
78
79 return &_worldPacket;
80}
81
83{
84 _worldPacket << ObjectGUID;
85 _worldPacket << uint8(State);
86
87 return &_worldPacket;
88}
89
91{
92 _worldPacket << ObjectGUID;
93 _worldPacket << int32(InteractionType);
94
95 return &_worldPacket;
96}
97
99{
100 _worldPacket << int32(InteractionType);
101
102 return &_worldPacket;
103}
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
uint32_t uint32
Definition: Define.h:142
WorldPacket const * Write() override
WorldPacket _worldPacket
Definition: Packet.h:43