feat(object): add ClntObjMgrGetActivePlayer

This commit is contained in:
fallenoak committed 2026-01-06 22:52:22 -06:00
1 parent aa2f51976f
commit 766d849d79
2 files changed
+10

No files matched your search

+8
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;
}
+2
View File
@@ -4,6 +4,8 @@
#include "object/client/ClntObjMgr.hpp"
#include <cstdint>
uint64_t ClntObjMgrGetActivePlayer();
ClntObjMgr* ClntObjMgrGetCurrent();
uint32_t ClntObjMgrGetMapID();