mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22:30 +00:00
feat(glue): implement update realm list
This commit is contained in:
parent
780de91468
commit
41554f32b4
4 changed files with 88 additions and 1 deletions
|
|
@ -58,6 +58,14 @@ ClientServices* ClientServices::GetInstance() {
|
|||
return ClientServices::s_instance;
|
||||
}
|
||||
|
||||
REALM_INFO* ClientServices::GetRealmInfoByIndex(int32_t index) {
|
||||
if (index >= ClientServices::GetInstance()->m_realmList.Count()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return &ClientServices::GetInstance()->m_realmList[index];
|
||||
}
|
||||
|
||||
const char* ClientServices::GetSelectedRealmName() {
|
||||
if (!ClientServices::s_realmNameVar) {
|
||||
ClientServices::s_realmNameVar = CVar::Register(
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ class ClientServices : public LoginResponse {
|
|||
static void ConnectToSelectedServer();
|
||||
static ClientConnection* Connection();
|
||||
static ClientServices* GetInstance();
|
||||
static REALM_INFO* GetRealmInfoByIndex(int32_t index);
|
||||
static const char* GetSelectedRealmName();
|
||||
static void Initialize();
|
||||
static Login* LoginConnection();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue