TrinityCore
Loading...
Searching...
No Matches
DuelPackets.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.org/>
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 "
DuelPackets.h
"
19
#include "
Errors.h
"
20
21
WorldPackets::Duel::DuelResponse::DuelResponse
(
WorldPacket
&&
packet
) :
ClientPacket
(
std
::move(
packet
))
22
{
23
ASSERT
(
GetOpcode
() ==
CMSG_DUEL_ACCEPTED
||
GetOpcode
() ==
CMSG_DUEL_CANCELLED
);
24
}
25
26
void
WorldPackets::Duel::DuelResponse::Read
()
27
{
28
_worldPacket >> ArbiterGUID;
29
}
DuelPackets.h
Errors.h
ASSERT
#define ASSERT
Definition
Errors.h:68
WorldPacket
Definition
WorldPacket.h:27
WorldPackets::Array
Definition
PacketUtilities.h:120
WorldPackets::ClientPacket
Definition
Packet.h:60
WorldPackets::ClientPacket::GetOpcode
OpcodeClient GetOpcode() const
Definition
Packet.h:67
WorldPackets::Duel::DuelResponse::DuelResponse
DuelResponse(WorldPacket &&packet)
Definition
DuelPackets.cpp:21
WorldPackets::Duel::DuelResponse::Read
void Read() override
Definition
DuelPackets.cpp:26
CMSG_DUEL_CANCELLED
@ CMSG_DUEL_CANCELLED
Definition
Opcodes.h:394
CMSG_DUEL_ACCEPTED
@ CMSG_DUEL_ACCEPTED
Definition
Opcodes.h:393
std
STL namespace.
server
game
Server
Packets
DuelPackets.cpp
Generated by
1.9.8