mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-20 21:14:56 +03:00
feat(glue): handle COP_CONNECT in CGlueMgr::PollAccountLogin
This commit is contained in:
3 files changed
+10
-2
No files matched your search
@@ -110,6 +110,12 @@ const char* s_errorCodeTokens[] = {
|
||||
"CHAR_NAME_DECLENSION_DOESNT_MATCH_BASE_NAME",
|
||||
};
|
||||
|
||||
void ClientConnection::AccountLogin(const char* name, const char* password, int32_t region, WOW_LOCALE locale) {
|
||||
// Assertion-like thing
|
||||
|
||||
this->Initiate(COP_AUTHENTICATE, 11, nullptr);
|
||||
}
|
||||
|
||||
void ClientConnection::AccountLogin_Finish(int32_t errorCode) {
|
||||
this->Complete(errorCode == 12, errorCode);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "net/connection/RealmConnection.hpp"
|
||||
#include "net/Types.hpp"
|
||||
#include "util/Locale.hpp"
|
||||
|
||||
class RealmResponse;
|
||||
|
||||
@@ -23,6 +24,7 @@ class ClientConnection : public RealmConnection {
|
||||
ClientConnection(RealmResponse* realmResponse)
|
||||
: RealmConnection(realmResponse)
|
||||
{};
|
||||
void AccountLogin(const char* name, const char* password, int32_t region, WOW_LOCALE locale);
|
||||
void AccountLogin_Finish(int32_t authResult);
|
||||
void AccountLogin_Queued();
|
||||
void Cancel(int32_t errorCode);
|
||||
|
||||
Reference in new issue
Block a user