|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <ChannelMgr.h>
Public Member Functions | |
| ChannelMgr () | |
| Channel * | GetChannel (std::string const &name, Player *p, bool pkt=true) |
| Channel * | GetJoinChannel (std::string const &name, uint32 channel_id) |
| void | LeftChannel (std::string const &name) |
| void | setTeam (uint32 newTeam) |
| ~ChannelMgr () | |
Static Public Member Functions | |
| static ChannelMgr * | forTeam (uint32 team) |
Private Types | |
| typedef std::map< std::wstring, Channel * > | ChannelMap |
Private Member Functions | |
| void | MakeNotOnPacket (WorldPacket *data, std::string const &name) |
Private Attributes | |
| ChannelMap | channels |
| uint32 | team |
Definition at line 18 of file ChannelMgr.h.
|
private |
Definition at line 20 of file ChannelMgr.h.
|
inline |
| ChannelMgr::~ChannelMgr | ( | ) |
Definition at line 11 of file ChannelMgr.cpp.
References channels.
|
static |
Definition at line 17 of file ChannelMgr.cpp.
References ALLIANCE, ChannelMgr(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL, HORDE, Skyfire::Singleton< T, Lock >::instance(), sWorld, and team.
Referenced by Player::CleanupChannels(), WorldSession::HandleChannelAnnouncements(), WorldSession::HandleChannelBan(), WorldSession::HandleChannelInvite(), WorldSession::HandleChannelKick(), WorldSession::HandleChannelList(), WorldSession::HandleChannelModerator(), WorldSession::HandleChannelMute(), WorldSession::HandleChannelOwner(), WorldSession::HandleChannelPassword(), WorldSession::HandleChannelSetOwner(), message_commandscript::HandleChannelSetOwnership(), WorldSession::HandleChannelUnban(), WorldSession::HandleChannelUnmoderator(), WorldSession::HandleChannelUnmute(), WorldSession::HandleGetChannelMemberCount(), WorldSession::HandleJoinChannel(), WorldSession::HandleLeaveChannel(), WorldSession::HandleMessagechatOpcode(), and Player::UpdateLocalChannels().
Definition at line 51 of file ChannelMgr.cpp.
References channels, Player::GetSession(), MakeNotOnPacket(), WorldSession::SendPacket(), Utf8toWStr(), and wstrToLower().
Definition at line 31 of file ChannelMgr.cpp.
References channels, team, Utf8toWStr(), and wstrToLower().
Referenced by Player::UpdateLocalChannels().
| void ChannelMgr::LeftChannel | ( | std::string const & | name | ) |
Definition at line 76 of file ChannelMgr.cpp.
References channels, Channel::GetNumPlayers(), Channel::IsConstant(), Utf8toWStr(), and wstrToLower().
Referenced by Player::UpdateLocalChannels().
|
private |
Definition at line 98 of file ChannelMgr.cpp.
References WorldPacket::Initialize(), and SMSG_CHANNEL_NOTIFY.
Referenced by GetChannel().
|
inline |
Definition at line 29 of file ChannelMgr.h.
References team.
|
private |
Definition at line 36 of file ChannelMgr.h.
Referenced by GetChannel(), GetJoinChannel(), LeftChannel(), and ~ChannelMgr().
|
private |
Definition at line 37 of file ChannelMgr.h.
Referenced by ChannelMgr(), forTeam(), GetJoinChannel(), and setTeam().