diff options
Diffstat (limited to 'src/trinityrealm/RealmList.h')
| -rw-r--r-- | src/trinityrealm/RealmList.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trinityrealm/RealmList.h b/src/trinityrealm/RealmList.h index 3663b2bd20d..b157fe8cc5c 100644 --- a/src/trinityrealm/RealmList.h +++ b/src/trinityrealm/RealmList.h @@ -38,6 +38,7 @@ struct Realm uint32 m_ID; AccountTypes allowedSecurityLevel; float populationLevel; + uint32 gamebuild; }; /// Storage object for the list of realms on the server @@ -53,12 +54,14 @@ class RealmList void UpdateIfNeed(); + void AddRealm(Realm NewRealm) {m_realms[NewRealm.name] = NewRealm;} + RealmMap::const_iterator begin() const { return m_realms.begin(); } RealmMap::const_iterator end() const { return m_realms.end(); } uint32 size() const { return m_realms.size(); } private: void UpdateRealms(bool init); - void UpdateRealm( uint32 ID, const std::string& name, const std::string& address, uint32 port, uint8 icon, uint8 color, uint8 timezone, AccountTypes allowedSecurityLevel, float popu); + void UpdateRealm( uint32 ID, const std::string& name, const std::string& address, uint32 port, uint8 icon, uint8 color, uint8 timezone, AccountTypes allowedSecurityLevel, float popu, uint32 build); private: RealmMap m_realms; ///< Internal map of realms uint32 m_UpdateInterval; |
