mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(object): add ClntObjMgrSetActivePlayer
This commit is contained in:
parent
7db0561473
commit
63a51faa48
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user