AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
LFGHandler.cpp File Reference
#include "DBCStores.h"
#include "GameTime.h"
#include "Group.h"
#include "LFGMgr.h"
#include "LFGPackets.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "Player.h"
#include "WorldPacket.h"
#include "WorldSession.h"

Go to the source code of this file.

Functions

void BuildPlayerLockDungeonBlock (WorldPacket &data, lfg::LfgLockMap const &lock)
 
void BuildPartyLockDungeonBlock (WorldPacket &data, const lfg::LfgLockPartyMap &lockMap)
 

Function Documentation

◆ BuildPartyLockDungeonBlock()

void BuildPartyLockDungeonBlock ( WorldPacket data,
const lfg::LfgLockPartyMap lockMap 
)
40{
41 data << uint8(lockMap.size());
42 for (lfg::LfgLockPartyMap::const_iterator it = lockMap.begin(); it != lockMap.end(); ++it)
43 {
44 data << it->first; // Player guid
45 BuildPlayerLockDungeonBlock(data, it->second);
46 }
47}
std::uint8_t uint8
Definition: Define.h:109
void BuildPlayerLockDungeonBlock(WorldPacket &data, lfg::LfgLockMap const &lock)
Definition: LFGHandler.cpp:29

References BuildPlayerLockDungeonBlock().

Referenced by WorldSession::HandleLfgPartyLockInfoRequestOpcode(), and WorldSession::SendLfgJoinResult().

◆ BuildPlayerLockDungeonBlock()

void BuildPlayerLockDungeonBlock ( WorldPacket data,
lfg::LfgLockMap const &  lock 
)
30{
31 data << uint32(lock.size()); // Size of lock dungeons
32 for (lfg::LfgLockMap::const_iterator it = lock.begin(); it != lock.end(); ++it)
33 {
34 data << uint32(it->first); // Dungeon entry (id + type)
35 data << uint32(it->second); // Lock status
36 }
37}
std::uint32_t uint32
Definition: Define.h:107

Referenced by BuildPartyLockDungeonBlock(), and WorldSession::HandleLfgPlayerLockInfoRequestOpcode().