TrinityCore
Loading...
Searching...
No Matches
ChannelMgr Class Reference

#include <ChannelMgr.h>

Public Member Functions

void SaveToDB ()
 
ChannelGetSystemChannel (uint32 channelId, AreaTableEntry const *zoneEntry=nullptr)
 
ChannelCreateCustomChannel (std::string const &name)
 
ChannelGetCustomChannel (std::string const &name) const
 
ChannelGetChannel (uint32 channelId, std::string const &name, Player *player, bool pkt=true, AreaTableEntry const *zoneEntry=nullptr) const
 
void LeftChannel (uint32 channelId, AreaTableEntry const *zoneEntry)
 

Static Public Member Functions

static void LoadFromDB ()
 
static ChannelMgrforTeam (uint32 team)
 
static ChannelGetChannelForPlayerByNamePart (std::string const &namePart, Player *playerSearcher)
 

Protected Member Functions

 ChannelMgr (uint32 team)
 
 ~ChannelMgr ()
 

Private Types

typedef std::unordered_map< std::wstring, Channel * > CustomChannelContainer
 
typedef std::unordered_map< std::pair< uint32, uint32 >, Channel * > BuiltinChannelContainer
 

Static Private Member Functions

static void MakeNotOnPacket (WorldPacket *data, std::string const &name)
 

Private Attributes

CustomChannelContainer _customChannels
 
BuiltinChannelContainer _channels
 
uint32 const _team
 

Detailed Description

Definition at line 30 of file ChannelMgr.h.

Member Typedef Documentation

◆ BuiltinChannelContainer

typedef std::unordered_map<std::pair<uint32 , uint32 >, Channel*> ChannelMgr::BuiltinChannelContainer
private

Definition at line 33 of file ChannelMgr.h.

◆ CustomChannelContainer

typedef std::unordered_map<std::wstring, Channel*> ChannelMgr::CustomChannelContainer
private

Definition at line 32 of file ChannelMgr.h.

Constructor & Destructor Documentation

◆ ChannelMgr()

ChannelMgr::ChannelMgr ( uint32  team)
inlineexplicitprotected

Definition at line 36 of file ChannelMgr.h.

◆ ~ChannelMgr()

ChannelMgr::~ChannelMgr ( )
protected

Definition at line 27 of file ChannelMgr.cpp.

Member Function Documentation

◆ CreateCustomChannel()

Channel * ChannelMgr::CreateCustomChannel ( std::string const &  name)

Definition at line 171 of file ChannelMgr.cpp.

+ Here is the call graph for this function:

◆ forTeam()

ChannelMgr * ChannelMgr::forTeam ( uint32  team)
static

Definition at line 107 of file ChannelMgr.cpp.

+ Here is the caller graph for this function:

◆ GetChannel()

Channel * ChannelMgr::GetChannel ( uint32  channelId,
std::string const &  name,
Player player,
bool  pkt = true,
AreaTableEntry const *  zoneEntry = nullptr 
) const

Definition at line 204 of file ChannelMgr.cpp.

+ Here is the call graph for this function:

◆ GetChannelForPlayerByNamePart()

Channel * ChannelMgr::GetChannelForPlayerByNamePart ( std::string const &  namePart,
Player playerSearcher 
)
static

Definition at line 124 of file ChannelMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCustomChannel()

Channel * ChannelMgr::GetCustomChannel ( std::string const &  name) const

Definition at line 190 of file ChannelMgr.cpp.

+ Here is the call graph for this function:

◆ GetSystemChannel()

Channel * ChannelMgr::GetSystemChannel ( uint32  channelId,
AreaTableEntry const *  zoneEntry = nullptr 
)

Definition at line 153 of file ChannelMgr.cpp.

+ Here is the caller graph for this function:

◆ LeftChannel()

void ChannelMgr::LeftChannel ( uint32  channelId,
AreaTableEntry const *  zoneEntry 
)

Definition at line 251 of file ChannelMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadFromDB()

void ChannelMgr::LoadFromDB ( )
static

Definition at line 36 of file ChannelMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MakeNotOnPacket()

void ChannelMgr::MakeNotOnPacket ( WorldPacket data,
std::string const &  name 
)
staticprivate

Definition at line 272 of file ChannelMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SaveToDB()

void ChannelMgr::SaveToDB ( )

Definition at line 147 of file ChannelMgr.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _channels

BuiltinChannelContainer ChannelMgr::_channels
private

Definition at line 53 of file ChannelMgr.h.

◆ _customChannels

CustomChannelContainer ChannelMgr::_customChannels
private

Definition at line 52 of file ChannelMgr.h.

◆ _team

uint32 const ChannelMgr::_team
private

Definition at line 54 of file ChannelMgr.h.


The documentation for this class was generated from the following files: