feat(object): add ClntObjMgrSetActivePlayer

This commit is contained in:
fallenoak committed 2026-01-09 20:21:15 -06:00
1 parent 7db0561473
commit 63a51faa48
2 files changed
+6

No files matched your search

+4
View File
@@ -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);
+2
View File
@@ -18,6 +18,8 @@ void ClntObjMgrPop();
void ClntObjMgrPush(ClntObjMgr* mgr);
void ClntObjMgrSetActivePlayer(uint64_t guid);
void ClntObjMgrSetHandlers();
#endif