mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
29 lines
875 B
C++
29 lines
875 B
C++
#include "client/ClientRealmResponseAdapter.hpp"
|
|
|
|
void AccountDataInitialize(bool a1) {
|
|
// TODO
|
|
}
|
|
|
|
void ClientRealmResponseAdapter::CharacterListReceived(RealmConnection* realmConnection, const TSFixedArray<CHARACTER_INFO>& characterList, int32_t listSuccess) {
|
|
auto clientConnection = static_cast<ClientConnection*>(realmConnection);
|
|
|
|
if (listSuccess) {
|
|
clientConnection->Complete(1, 44);
|
|
} else {
|
|
clientConnection->Complete(0, 45);
|
|
}
|
|
}
|
|
|
|
void ClientRealmResponseAdapter::HandleAuthResponse(RealmConnection* realmConnection, uint8_t authResult) {
|
|
auto clientConnection = static_cast<ClientConnection*>(realmConnection);
|
|
|
|
// AUTH_WAIT_QUEUE
|
|
if (authResult == 27) {
|
|
clientConnection->AccountLogin_Queued();
|
|
} else {
|
|
clientConnection->AccountLogin_Finish(authResult);
|
|
}
|
|
|
|
AccountDataInitialize(true);
|
|
}
|