feat(client): handle successful authentication in ClientServices

This commit is contained in:
fallenoak committed 2023-02-07 12:57:36 -06:00
1 parent 9fe2e2e8ff
commit 5355b75768
10 files changed
+60

No files matched your search

+4
View File
@@ -44,6 +44,10 @@ int32_t NetClient::Initialize() {
return 1;
}
void NetClient::SetLoginData(LoginData* loginData) {
memcpy(&this->m_loginData, loginData, sizeof(this->m_loginData));
}
void NetClient::SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param) {
this->m_handlers[msgId] = handler;
this->m_handlerParams[msgId] = param;
+2
View File
@@ -36,6 +36,7 @@ class NetClient : public WowConnectionResponse {
static int32_t s_clientCount;
// Member variables
LoginData m_loginData;
NETSTATE m_netState = NS_UNINITIALIZED;
MESSAGE_HANDLER m_handlers[NUM_MSG_TYPES];
void* m_handlerParams[NUM_MSG_TYPES];
@@ -50,6 +51,7 @@ class NetClient : public WowConnectionResponse {
// Member functions
int32_t Initialize();
void SetLoginData(LoginData* loginData);
void SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param);
};