mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-16 19:12:07 +03:00
feat(object): add ClntObjMgrSetActivePlayer
This commit is contained in:
2 files changed
+6
No files matched your search
@@ -133,6 +133,10 @@ void ClntObjMgrPush(ClntObjMgr* mgr) {
|
||||
s_curMgr = mgr;
|
||||
}
|
||||
|
||||
void ClntObjMgrSetActivePlayer(uint64_t guid) {
|
||||
s_curMgr->m_activePlayer = guid;
|
||||
}
|
||||
|
||||
void ClntObjMgrSetHandlers() {
|
||||
s_curMgr->m_net->SetMessageHandler(SMSG_UPDATE_OBJECT, &ObjectUpdateHandler, nullptr);
|
||||
s_curMgr->m_net->SetMessageHandler(SMSG_COMPRESSED_UPDATE_OBJECT, &ObjectCompressedUpdateHandler, nullptr);
|
||||
|
||||
@@ -18,6 +18,8 @@ void ClntObjMgrPop();
|
||||
|
||||
void ClntObjMgrPush(ClntObjMgr* mgr);
|
||||
|
||||
void ClntObjMgrSetActivePlayer(uint64_t guid);
|
||||
|
||||
void ClntObjMgrSetHandlers();
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user