mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 17:19:09 +00:00
feat(client): implement auth response handler in realm adapter
This commit is contained in:
parent
23d537103e
commit
1b27761d0c
5 changed files with 58 additions and 26 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue