Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
RealmList Class Reference

Storage object for the list of realms on the server. More...

#include <RealmList.h>

Public Types

typedef std::map< std::string, RealmRealmMap

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

Detailed Description

Storage object for the list of realms on the server.

Definition at line 45 of file RealmList.h.

Member Typedef Documentation

◆ RealmMap

typedef std::map<std::string, Realm> RealmList::RealmMap

Definition at line 48 of file RealmList.h.

Constructor & Destructor Documentation

◆ RealmList()

RealmList::RealmList ( )

Definition at line 10 of file RealmList.cpp.

References m_NextUpdateTime, and m_UpdateInterval.

◆ ~RealmList()

RealmList::~RealmList ( )
inline

Definition at line 51 of file RealmList.h.

Member Function Documentation

◆ AddRealm()

void RealmList::AddRealm ( const Realm & NewRealm)
inline

Definition at line 57 of file RealmList.h.

References m_realms, and Realm::name.

◆ begin()

RealmMap::const_iterator RealmList::begin ( ) const
inline

Definition at line 59 of file RealmList.h.

References m_realms.

◆ end()

RealmMap::const_iterator RealmList::end ( ) const
inline

Definition at line 60 of file RealmList.h.

References m_realms.

◆ Initialize()

void RealmList::Initialize ( uint32 updateInterval)

Definition at line 13 of file RealmList.cpp.

References m_UpdateInterval, and UpdateRealms().

◆ size()

uint32 RealmList::size ( ) const
inline

Definition at line 61 of file RealmList.h.

References m_realms.

◆ UpdateIfNeed()

void RealmList::UpdateIfNeed ( )

Definition at line 44 of file RealmList.cpp.

References m_NextUpdateTime, m_realms, m_UpdateInterval, and UpdateRealms().

◆ UpdateRealm()

void RealmList::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 )
private

◆ UpdateRealms()

void RealmList::UpdateRealms ( bool init = false)
private

Member Data Documentation

◆ m_NextUpdateTime

time_t RealmList::m_NextUpdateTime
private

Definition at line 72 of file RealmList.h.

Referenced by RealmList(), and UpdateIfNeed().

◆ m_realms

RealmMap RealmList::m_realms
private

Definition at line 70 of file RealmList.h.

Referenced by AddRealm(), begin(), end(), size(), UpdateIfNeed(), UpdateRealm(), and UpdateRealms().

◆ m_UpdateInterval

uint32 RealmList::m_UpdateInterval
private

Definition at line 71 of file RealmList.h.

Referenced by Initialize(), RealmList(), and UpdateIfNeed().


The documentation for this class was generated from the following files: