mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-15 10:41:17 +03:00
feat(client): add ClientServices::GetRealmList (#111)
Co-authored-by: fallenoak <git@fallenoak.me>
This commit is contained in:
1 parent
0c2db0a97d
commit
3636efec34
4 files changed
+17
No files matched your search
@@ -91,6 +91,17 @@ void ClientConnection::GetCharacterList() {
|
||||
}
|
||||
}
|
||||
|
||||
void ClientConnection::GetRealmList() {
|
||||
this->Initiate(COP_GET_REALMS, 35, nullptr);
|
||||
|
||||
if (ClientServices::LoginConnection()->IsLoggedOn()) {
|
||||
ClientServices::LoginConnection()->GetRealmList();
|
||||
}
|
||||
else {
|
||||
ClientServices::LoginConnection()->Reconnect();
|
||||
}
|
||||
}
|
||||
|
||||
int32_t ClientConnection::HandleConnect() {
|
||||
this->Complete(1, 5);
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ class ClientConnection : public RealmConnection {
|
||||
int32_t Disconnect();
|
||||
void EnumerateCharacters(ENUMERATE_CHARACTERS_CALLBACK callback, void* param);
|
||||
void GetCharacterList();
|
||||
void GetRealmList();
|
||||
void Initiate(WOWCS_OPS op, int32_t errorCode, void (*cleanup)());
|
||||
int32_t IsConnected();
|
||||
int32_t PollStatus(WOWCS_OPS& op, const char** msg, int32_t& result, int32_t& errorCode);
|
||||
|
||||
Reference in new issue
Block a user