2023-04-03 18:00:18 -05:00
|
|
|
#include "client/ClientRealmResponseAdapter.hpp"
|
|
|
|
|
|
2023-04-03 23:34:31 -05:00
|
|
|
void AccountDataInitialize(bool a1) {
|
2023-04-03 18:00:18 -05:00
|
|
|
// TODO
|
|
|
|
|
}
|
2023-04-03 23:34:31 -05:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
2025-03-16 11:20:50 +04:00
|
|
|
|
|
|
|
|
void ClientRealmResponseAdapter::CharacterListReceived(RealmConnection* realmConnection, void* a2, int32_t success) {
|
|
|
|
|
auto clientConnection = static_cast<ClientConnection*>(realmConnection);
|
|
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
|
clientConnection->Complete(1, 44);
|
|
|
|
|
} else {
|
|
|
|
|
clientConnection->Complete(1, 45);
|
|
|
|
|
}
|
|
|
|
|
}
|