|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Storage object for the list of realms on the server. More...
#include <RealmList.h>
Public Types | |
| typedef std::map< std::string, Realm > | RealmMap |
Public Member Functions | |
| void | AddRealm (const Realm &NewRealm) |
| RealmMap::const_iterator | begin () const |
| RealmMap::const_iterator | end () const |
| void | Initialize (uint32 updateInterval) |
| RealmList () | |
| uint32 | size () const |
| void | UpdateIfNeed () |
| ~RealmList () | |
Private Member Functions | |
| void | UpdateRealm (uint32 id, const std::string &name, Skyfire::Net::Address const &address, Skyfire::Net::Address const &localAddr, Skyfire::Net::Address const &localSubmask, uint8 icon, RealmFlags flag, uint8 timezone, AccountTypes allowedSecurityLevel, float popu, uint32 build) |
| void | UpdateRealms (bool init=false) |
Private Attributes | |
| time_t | m_NextUpdateTime |
| RealmMap | m_realms |
| uint32 | m_UpdateInterval |
Storage object for the list of realms on the server.
Definition at line 45 of file RealmList.h.
| typedef std::map<std::string, Realm> RealmList::RealmMap |
Definition at line 48 of file RealmList.h.
| RealmList::RealmList | ( | ) |
Definition at line 10 of file RealmList.cpp.
References m_NextUpdateTime, and m_UpdateInterval.
|
inline |
Definition at line 51 of file RealmList.h.
|
inline |
Definition at line 57 of file RealmList.h.
References m_realms, and Realm::name.
|
inline |
Definition at line 59 of file RealmList.h.
References m_realms.
|
inline |
Definition at line 60 of file RealmList.h.
References m_realms.
| void RealmList::Initialize | ( | uint32 | updateInterval | ) |
Definition at line 13 of file RealmList.cpp.
References m_UpdateInterval, and UpdateRealms().
|
inline |
Definition at line 61 of file RealmList.h.
References m_realms.
| void RealmList::UpdateIfNeed | ( | ) |
Definition at line 44 of file RealmList.cpp.
References m_NextUpdateTime, m_realms, m_UpdateInterval, and UpdateRealms().
|
private |
Definition at line 21 of file RealmList.cpp.
References Realm::allowedSecurityLevel, Realm::ExternalAddress, Realm::flag, Realm::gamebuild, Realm::icon, Realm::LocalAddress, Realm::LocalSubnetMask, Realm::m_ID, m_realms, Realm::name, Realm::populationLevel, and Realm::timezone.
Referenced by UpdateRealms().
|
private |
Definition at line 59 of file RealmList.cpp.
References Field::GetFloat(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), LOGIN_SEL_AUTH_REALMLIST, LoginDatabase, m_realms, SEC_ADMINISTRATOR, SF_LOG_INFO, and UpdateRealm().
Referenced by Initialize(), and UpdateIfNeed().
|
private |
Definition at line 72 of file RealmList.h.
Referenced by RealmList(), and UpdateIfNeed().
|
private |
Definition at line 70 of file RealmList.h.
Referenced by AddRealm(), begin(), end(), size(), UpdateIfNeed(), UpdateRealm(), and UpdateRealms().
|
private |
Definition at line 71 of file RealmList.h.
Referenced by Initialize(), RealmList(), and UpdateIfNeed().