mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-08 23:59:53 +03:00
feat(net): add NetClient::SetObjMgr
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -381,6 +381,10 @@ void NetClient::SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, voi
|
||||
this->m_handlerParams[msgId] = param;
|
||||
}
|
||||
|
||||
void NetClient::SetObjMgr(ClntObjMgr* objMgr) {
|
||||
this->m_objMgr = objMgr;
|
||||
}
|
||||
|
||||
void NetClient::WCCantConnect(WowConnection* conn, uint32_t timeStamp, NETCONNADDR* addr) {
|
||||
if (conn == this->m_redirectConnection) {
|
||||
// TODO
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <cstdint>
|
||||
|
||||
class CDataStore;
|
||||
class ClntObjMgr;
|
||||
class NetClient;
|
||||
class WowConnection;
|
||||
|
||||
@@ -80,6 +81,7 @@ class NetClient : public WowConnectionResponse {
|
||||
void SetDelete();
|
||||
void SetLoginData(LoginData* loginData);
|
||||
void SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param);
|
||||
void SetObjMgr(ClntObjMgr* objMgr);
|
||||
|
||||
private:
|
||||
// Static variables
|
||||
@@ -105,6 +107,7 @@ class NetClient : public WowConnectionResponse {
|
||||
uint32_t m_bytesReceived = 0;
|
||||
uint32_t m_connectedTimestamp = 0;
|
||||
SCritSect m_pingLock;
|
||||
ClntObjMgr* m_objMgr = nullptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user