mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 11:32:29 +00:00
feat(net): update RealmConnection::HandleCharEnum to use virtual call of RealmResponse::CharacterListReceived
This commit is contained in:
parent
1e8dc7aef9
commit
d536140d63
4 changed files with 16 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ class ClientRealmResponseAdapter : public RealmResponse {
|
|||
public:
|
||||
// Virtual member functions
|
||||
virtual void HandleAuthResponse(RealmConnection* realmConnection, uint8_t authResult);
|
||||
virtual void CharacterListReceived(RealmConnection* realmConnection, void* a2, int32_t success);
|
||||
virtual void GameServerResult(RealmConnection* realmConnection, const char* a2, const char* a3, const char* a4) {};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue