TrinityCore
Loading...
Searching...
No Matches
AdventureMapPackets.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 "
AdventureMapPackets.h
"
19
#include "
PacketOperators.h
"
20
21
namespace
WorldPackets::AdventureMap
22
{
23
void
CheckIsAdventureMapPoiValid::Read
()
24
{
25
_worldPacket
>>
AdventureMapPoiID
;
26
}
27
28
WorldPacket
const
*
PlayerIsAdventureMapPoiValid::Write
()
29
{
30
_worldPacket
<<
AdventureMapPoiID
;
31
_worldPacket << Bits<1>(
IsVisible
);
32
_worldPacket
.
FlushBits
();
33
34
return
&
_worldPacket
;
35
}
36
37
void
AdventureMapStartQuest::Read
()
38
{
39
_worldPacket
>>
QuestID
;
40
}
41
}
AdventureMapPackets.h
PacketOperators.h
ByteBuffer::FlushBits
void FlushBits()
Definition
ByteBuffer.h:141
WorldPacket
Definition
WorldPacket.h:26
WorldPackets::AdventureMap::AdventureMapStartQuest::Read
void Read() override
Definition
AdventureMapPackets.cpp:37
WorldPackets::AdventureMap::AdventureMapStartQuest::QuestID
int32 QuestID
Definition
AdventureMapPackets.h:55
WorldPackets::AdventureMap::CheckIsAdventureMapPoiValid::AdventureMapPoiID
uint32 AdventureMapPoiID
Definition
AdventureMapPackets.h:34
WorldPackets::AdventureMap::CheckIsAdventureMapPoiValid::Read
void Read() override
Definition
AdventureMapPackets.cpp:23
WorldPackets::AdventureMap::PlayerIsAdventureMapPoiValid::Write
WorldPacket const * Write() override
Definition
AdventureMapPackets.cpp:28
WorldPackets::AdventureMap::PlayerIsAdventureMapPoiValid::IsVisible
bool IsVisible
Definition
AdventureMapPackets.h:45
WorldPackets::AdventureMap::PlayerIsAdventureMapPoiValid::AdventureMapPoiID
int32 AdventureMapPoiID
Definition
AdventureMapPackets.h:44
WorldPackets::Packet::_worldPacket
WorldPacket _worldPacket
Definition
Packet.h:43
WorldPackets::AdventureMap
Definition
AdventureMapPackets.cpp:22
server
game
Server
Packets
AdventureMapPackets.cpp
Generated on Sun May 10 2026 02:09:01 for TrinityCore by
1.9.8