mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(net): request realm list after successful auth
This commit is contained in:
parent
18a4c5530d
commit
b0b6bc5e52
3 changed files with 20 additions and 1 deletions
|
|
@ -327,6 +327,24 @@ void Grunt::ClientLink::Disconnect() {
|
||||||
this->m_critSect.Leave();
|
this->m_critSect.Leave();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Grunt::ClientLink::GetRealmList() {
|
||||||
|
if (this->m_state != 6) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
CDataStoreCache<1024> realmListCmd;
|
||||||
|
|
||||||
|
uint8_t opcode = CMD_REALM_LIST;
|
||||||
|
realmListCmd.Put(opcode);
|
||||||
|
|
||||||
|
uint32_t padding = 0;
|
||||||
|
realmListCmd.Put(padding);
|
||||||
|
|
||||||
|
realmListCmd.Finalize();
|
||||||
|
|
||||||
|
this->Send(realmListCmd);
|
||||||
|
}
|
||||||
|
|
||||||
void Grunt::ClientLink::LogonNewSession(const Grunt::ClientLink::Logon& logon) {
|
void Grunt::ClientLink::LogonNewSession(const Grunt::ClientLink::Logon& logon) {
|
||||||
this->SetState(3);
|
this->SetState(3);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ class Grunt::ClientLink : public WowConnectionResponse, Grunt::Pending, Grunt::T
|
||||||
int32_t CmdXferInitiate(CDataStore& msg);
|
int32_t CmdXferInitiate(CDataStore& msg);
|
||||||
void Connect(const char* a2);
|
void Connect(const char* a2);
|
||||||
void Disconnect();
|
void Disconnect();
|
||||||
|
void GetRealmList();
|
||||||
void LogonNewSession(const Logon& logon);
|
void LogonNewSession(const Logon& logon);
|
||||||
void PackLogon(CDataStore& msg, const Logon& logon);
|
void PackLogon(CDataStore& msg, const Logon& logon);
|
||||||
void ProveVersion(const uint8_t* versionChecksum);
|
void ProveVersion(const uint8_t* versionChecksum);
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ void GruntLogin::GetLogonMethod() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GruntLogin::GetRealmList() {
|
void GruntLogin::GetRealmList() {
|
||||||
// TODO
|
this->m_clientLink->GetRealmList();
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t GruntLogin::GetServerId() {
|
int32_t GruntLogin::GetServerId() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue