feat(net): update RealmConnection::HandleCharEnum to use virtual call of RealmResponse::CharacterListReceived

This commit is contained in:
VDm 2025-03-16 11:20:50 +04:00
parent ebf5c66420
commit 64dc5f3aae
4 changed files with 16 additions and 10 deletions

View file

@ -16,3 +16,13 @@ void ClientRealmResponseAdapter::HandleAuthResponse(RealmConnection* realmConnec
AccountDataInitialize(true);
}
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);
}
}