AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "MotdMgr.h"
Public Member Functions | |
void | CreateWorldPackages () |
Converts the localized string to world packages. More... | |
void | SetMotd (std::string motd, LocaleConstant locale) |
Set a new Message of the Day. More... | |
void | LoadMotd () |
Load Message of the Day. More... | |
char const * | GetMotd (LocaleConstant locale) |
Get the current Message of the Day. More... | |
WorldPacket const * | GetMotdPacket (LocaleConstant locale) |
Returns the current motd packet for the given locale. More... | |
bool | IsValidLocale (std::string const &locale) |
Static Public Member Functions | |
static MotdMgr * | instance () |
Private Member Functions | |
std::string | LoadDefaultMotd (uint32 realmId) |
void | LoadLocalizedMotds (uint32 realmId) |
void | SetDefaultMotd () |
WorldPacket | CreateWorldPacket (std::string const &motd) |
void MotdMgr::CreateWorldPackages | ( | ) |
Converts the localized string to world packages.
References CreateWorldPacket().
Referenced by LoadMotd().
|
private |
References SMSG_MOTD, and Acore::Tokenize().
Referenced by CreateWorldPackages(), and SetMotd().
char const * MotdMgr::GetMotd | ( | LocaleConstant | locale | ) |
Get the current Message of the Day.
References DEFAULT_LOCALE.
WorldPacket const * MotdMgr::GetMotdPacket | ( | LocaleConstant | locale | ) |
Returns the current motd packet for the given locale.
References DEFAULT_LOCALE.
|
static |
bool MotdMgr::IsValidLocale | ( | std::string const & | locale | ) |
References localeNames.
|
private |
References Field::Get(), LOGIN_SEL_MOTD, LoginDatabase, and PreparedStatementBase::SetData().
Referenced by LoadMotd().
|
private |
References DEFAULT_LOCALE, Field::Get(), GetLocaleByName(), LOG_ERROR, LOGIN_SEL_MOTD, LOGIN_SEL_MOTD_LOCALE, LoginDatabase, and PreparedStatementBase::SetData().
Referenced by LoadMotd().
void MotdMgr::LoadMotd | ( | ) |
Load Message of the Day.
References CreateWorldPackages(), DEFAULT_LOCALE, LoadDefaultMotd(), LoadLocalizedMotds(), sConfigMgr, and SetDefaultMotd().
|
private |
References DEFAULT_LOCALE, LOG_INFO, and LOG_WARN.
Referenced by LoadMotd().
void MotdMgr::SetMotd | ( | std::string | motd, |
LocaleConstant | locale | ||
) |
Set a new Message of the Day.
References CreateWorldPacket(), and sScriptMgr.