TrinityCore
Loading...
Searching...
No Matches
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 TRINITYCORE_GAME_OBJECT_PACKETS_H
19
#define TRINITYCORE_GAME_OBJECT_PACKETS_H
20
21
#include "
ObjectGuid.h
"
22
#include "
Packet.h
"
23
24
namespace
WorldPackets
25
{
26
namespace
GameObject
27
{
28
class
GameObjUse
final
:
public
ClientPacket
29
{
30
public
:
31
explicit
GameObjUse
(
WorldPacket
&&
packet
) :
ClientPacket
(
CMSG_GAMEOBJ_USE
,
std
::move(
packet
)) { }
32
33
void
Read
()
override
;
34
35
ObjectGuid
Guid
;
36
};
37
38
class
GameObjReportUse
final
:
public
ClientPacket
39
{
40
public
:
41
explicit
GameObjReportUse
(
WorldPacket
&&
packet
) :
ClientPacket
(
CMSG_GAMEOBJ_REPORT_USE
,
std
::move(
packet
)) { }
42
43
void
Read
()
override
;
44
45
ObjectGuid
Guid
;
46
};
47
}
48
}
49
50
#endif
// TRINITYCORE_GAME_OBJECT_PACKETS_H
ObjectGuid.h
Packet.h
GameObject
Definition
GameObject.h:86
ObjectGuid
Definition
ObjectGuid.h:138
WorldPacket
Definition
WorldPacket.h:27
WorldPackets::Array
Definition
PacketUtilities.h:120
WorldPackets::ClientPacket
Definition
Packet.h:60
WorldPackets::GameObject::GameObjReportUse
Definition
GameObjectPackets.h:39
WorldPackets::GameObject::GameObjReportUse::Guid
ObjectGuid Guid
Definition
GameObjectPackets.h:45
WorldPackets::GameObject::GameObjReportUse::GameObjReportUse
GameObjReportUse(WorldPacket &&packet)
Definition
GameObjectPackets.h:41
WorldPackets::GameObject::GameObjReportUse::Read
void Read() override
Definition
GameObjectPackets.cpp:25
WorldPackets::GameObject::GameObjUse
Definition
GameObjectPackets.h:29
WorldPackets::GameObject::GameObjUse::GameObjUse
GameObjUse(WorldPacket &&packet)
Definition
GameObjectPackets.h:31
WorldPackets::GameObject::GameObjUse::Guid
ObjectGuid Guid
Definition
GameObjectPackets.h:35
WorldPackets::GameObject::GameObjUse::Read
void Read() override
Definition
GameObjectPackets.cpp:20
CMSG_GAMEOBJ_REPORT_USE
@ CMSG_GAMEOBJ_REPORT_USE
Definition
Opcodes.h:1182
CMSG_GAMEOBJ_USE
@ CMSG_GAMEOBJ_USE
Definition
Opcodes.h:206
WorldPackets
Definition
AchievementMgr.h:35
std
STL namespace.
server
game
Server
Packets
GameObjectPackets.h
Generated by
1.9.8