![]() |
TrinityCore
|
Storage object for the list of realms on the server. More...
#include <RealmList.h>
Public Types | |
| typedef std::map< RealmHandle, Realm > | RealmMap |
Public Member Functions | |
| ~RealmList () | |
| void | Initialize (Trinity::Asio::IoContext &ioContext, uint32 updateInterval) |
| void | Close () |
| RealmMap const & | GetRealms () const |
| Realm const * | GetRealm (RealmHandle const &id) const |
Static Public Member Functions | |
| static RealmList * | Instance () |
Private Member Functions | |
| RealmList () | |
| void | UpdateRealms (boost::system::error_code const &error) |
| void | UpdateRealm (RealmHandle const &id, uint32 build, std::string const &name, boost::asio::ip::address &&address, boost::asio::ip::address &&localAddr, boost::asio::ip::address &&localSubmask, uint16 port, uint8 icon, RealmFlags flag, uint8 timezone, AccountTypes allowedSecurityLevel, float population) |
Private Attributes | |
| RealmMap | _realms |
| uint32 | _updateInterval |
| std::unique_ptr< Trinity::Asio::DeadlineTimer > | _updateTimer |
| std::unique_ptr< Trinity::Asio::Resolver > | _resolver |
Storage object for the list of realms on the server.
Definition at line 34 of file RealmList.h.
| typedef std::map<RealmHandle, Realm> RealmList::RealmMap |
Definition at line 37 of file RealmList.h.
|
default |
|
private |
Definition at line 28 of file RealmList.cpp.
| void RealmList::Close | ( | ) |
Definition at line 52 of file RealmList.cpp.
| Realm const * RealmList::GetRealm | ( | RealmHandle const & | id | ) | const |
Definition at line 175 of file RealmList.cpp.
|
inline |
Definition at line 46 of file RealmList.h.
| void RealmList::Initialize | ( | Trinity::Asio::IoContext & | ioContext, |
| uint32 | updateInterval | ||
| ) |
|
static |
Definition at line 34 of file RealmList.cpp.
|
private |
|
private |
Definition at line 81 of file RealmList.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 57 of file RealmList.h.
|
private |
Definition at line 60 of file RealmList.h.
|
private |
Definition at line 58 of file RealmList.h.
|
private |
Definition at line 59 of file RealmList.h.