TrinityCore
|
#include <ChannelMgr.h>
Public Member Functions | |
ChannelMgr (ChannelMgr const &right)=delete | |
ChannelMgr (ChannelMgr &&right)=delete | |
ChannelMgr & | operator= (ChannelMgr const &right)=delete |
ChannelMgr & | operator= (ChannelMgr &&right)=delete |
void | SaveToDB () |
Channel * | GetSystemChannel (uint32 channelId, AreaTableEntry const *zoneEntry=nullptr) |
Channel * | CreateCustomChannel (std::string const &name) |
Channel * | GetCustomChannel (std::string const &name) const |
Channel * | GetChannel (uint32 channelId, std::string const &name, Player *player, bool notify=true, AreaTableEntry const *zoneEntry=nullptr) const |
void | LeftChannel (uint32 channelId, AreaTableEntry const *zoneEntry) |
Static Public Member Functions | |
static void | LoadFromDB () |
static ChannelMgr * | ForTeam (uint32 team) |
static Channel * | GetChannelForPlayerByNamePart (std::string const &namePart, Player *playerSearcher) |
static Channel * | GetChannelForPlayerByGuid (ObjectGuid channelGuid, Player *playerSearcher) |
Static Public Attributes | |
static AreaTableEntry const * | SpecialLinkedArea |
Protected Member Functions | |
ChannelMgr (uint32 team) | |
~ChannelMgr () | |
Private Types | |
typedef std::unordered_map< std::wstring, Channel * > | CustomChannelContainer |
typedef std::unordered_map< ObjectGuid, Channel * > | BuiltinChannelContainer |
Private Member Functions | |
ObjectGuid | CreateCustomChannelGuid () |
ObjectGuid | CreateBuiltinChannelGuid (uint32 channelId, AreaTableEntry const *zoneEntry=nullptr) const |
Static Private Member Functions | |
static void | SendNotOnChannelNotify (Player const *player, std::string const &name) |
Private Attributes | |
CustomChannelContainer | _customChannels |
BuiltinChannelContainer | _channels |
uint32 const | _team |
ObjectGuidGenerator | _guidGenerator |
Definition at line 29 of file ChannelMgr.h.
|
private |
Definition at line 32 of file ChannelMgr.h.
|
private |
Definition at line 31 of file ChannelMgr.h.
|
inlineexplicitprotected |
Definition at line 35 of file ChannelMgr.h.
|
protected |
Definition at line 31 of file ChannelMgr.cpp.
|
delete |
|
delete |
|
private |
Definition at line 274 of file ChannelMgr.cpp.
Channel * ChannelMgr::CreateCustomChannel | ( | std::string const & | name | ) |
Definition at line 181 of file ChannelMgr.cpp.
|
private |
Definition at line 269 of file ChannelMgr.cpp.
|
static |
Channel * ChannelMgr::GetChannel | ( | uint32 | channelId, |
std::string const & | name, | ||
Player * | player, | ||
bool | notify = true , |
||
AreaTableEntry const * | zoneEntry = nullptr |
||
) | const |
|
static |
Definition at line 160 of file ChannelMgr.cpp.
|
static |
Definition at line 131 of file ChannelMgr.cpp.
Channel * ChannelMgr::GetCustomChannel | ( | std::string const & | name | ) | const |
Definition at line 200 of file ChannelMgr.cpp.
Channel * ChannelMgr::GetSystemChannel | ( | uint32 | channelId, |
AreaTableEntry const * | zoneEntry = nullptr |
||
) |
Definition at line 169 of file ChannelMgr.cpp.
void ChannelMgr::LeftChannel | ( | uint32 | channelId, |
AreaTableEntry const * | zoneEntry | ||
) |
Definition at line 247 of file ChannelMgr.cpp.
|
static |
Definition at line 40 of file ChannelMgr.cpp.
|
delete |
|
delete |
void ChannelMgr::SaveToDB | ( | ) |
|
staticprivate |
Definition at line 261 of file ChannelMgr.cpp.
|
private |
Definition at line 59 of file ChannelMgr.h.
|
private |
Definition at line 58 of file ChannelMgr.h.
|
private |
Definition at line 61 of file ChannelMgr.h.
|
private |
Definition at line 60 of file ChannelMgr.h.
|
static |
Definition at line 48 of file ChannelMgr.h.