TrinityCore
GameObjectPackets.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 GOPackets_h__
19#define GOPackets_h__
20
21#include "Packet.h"
22#include "GameObject.h"
23
24enum class PlayerInteractionType : int32;
25
26namespace WorldPackets
27{
28 namespace GameObject
29 {
30 class GameObjUse final : public ClientPacket
31 {
32 public:
34
35 void Read() override;
36
38 };
39
40 class GameObjReportUse final : public ClientPacket
41 {
42 public:
44
45 void Read() override;
46
48 };
49
50 class GameObjectDespawn final : public ServerPacket
51 {
52 public:
54
55 WorldPacket const* Write() override;
56
58 };
59
60 class PageText final : public ServerPacket
61 {
62 public:
64
65 WorldPacket const* Write() override;
66
68 };
69
71 {
72 public:
74
75 WorldPacket const* Write() override;
76
79 bool Maintain = false;
80 };
81
83 {
84 public:
86
87 WorldPacket const* Write() override;
88
94 };
95
96 class FishNotHooked final : public ServerPacket
97 {
98 public:
100
101 WorldPacket const* Write() override { return &_worldPacket; }
102 };
103
104 class FishEscaped final : public ServerPacket
105 {
106 public:
108
109 WorldPacket const* Write() override { return &_worldPacket; }
110 };
111
113 {
114 public:
116
117 WorldPacket const* Write() override;
118
121 bool PlayAsDespawn = false;
122 };
123
125 {
126 public:
128
129 WorldPacket const* Write() override;
130
134 };
135
137 {
138 public:
140
141 WorldPacket const* Write() override;
142
145 };
146
148 {
149 public:
151
152 WorldPacket const* Write() override;
153
156 };
157
159 {
160 public:
162
163 WorldPacket const* Write() override;
164
166 };
167 }
168}
169#endif // GOPackets_h__
PlayerInteractionType
Definition: DBCEnums.h:1765
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 const * Write() override
WorldPacket const * Write() override
WorldPacket _worldPacket
Definition: Packet.h:43
@ CMSG_GAME_OBJ_REPORT_USE
Definition: Opcodes.h:343
@ CMSG_GAME_OBJ_USE
Definition: Opcodes.h:344
@ SMSG_GAME_OBJECT_CUSTOM_ANIM
Definition: Opcodes.h:1258
@ SMSG_PAGE_TEXT
Definition: Opcodes.h:1673
@ SMSG_GAME_OBJECT_INTERACTION
Definition: Opcodes.h:1260
@ SMSG_GAME_OBJECT_SET_STATE_LOCAL
Definition: Opcodes.h:1264
@ SMSG_GAME_OBJECT_PLAY_SPELL_VISUAL
Definition: Opcodes.h:1261
@ SMSG_GAME_OBJECT_CLOSE_INTERACTION
Definition: Opcodes.h:1257
@ SMSG_FISH_ESCAPED
Definition: Opcodes.h:1244
@ SMSG_GAME_OBJECT_DESPAWN
Definition: Opcodes.h:1259
@ SMSG_GAME_OBJECT_ACTIVATE_ANIM_KIT
Definition: Opcodes.h:1255
@ SMSG_DESTRUCTIBLE_BUILDING_DAMAGE
Definition: Opcodes.h:1200
@ SMSG_FISH_NOT_HOOKED
Definition: Opcodes.h:1245
STL namespace.