feat(client): implement auth response handler in realm adapter

This commit is contained in:
fallenoak 2023-04-03 23:34:31 -05:00
parent 23d537103e
commit 1b27761d0c
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
5 changed files with 58 additions and 26 deletions

View file

@ -1,5 +1,18 @@
#include "client/ClientRealmResponseAdapter.hpp"
void ClientRealmResponseAdapter::HandleAuthResponse(RealmConnection* connection, uint8_t authResult) {
void AccountDataInitialize(bool a1) {
// TODO
}
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);
}