feat(object): add ClntObjMgrGetActivePlayer

This commit is contained in:
fallenoak 2026-01-06 22:52:22 -06:00
parent aa2f51976f
commit 766d849d79
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,14 @@ static ClntObjMgr* s_curMgr;
static ClntObjMgr* s_savMgr;
uint64_t ClntObjMgrGetActivePlayer() {
if (!s_curMgr) {
return 0;
}
return s_curMgr->m_activePlayer;
}
ClntObjMgr* ClntObjMgrGetCurrent() {
return s_curMgr;
}

View File

@ -4,6 +4,8 @@
#include "object/client/ClntObjMgr.hpp"
#include <cstdint>
uint64_t ClntObjMgrGetActivePlayer();
ClntObjMgr* ClntObjMgrGetCurrent();
uint32_t ClntObjMgrGetMapID();