mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(object): add ClntObjMgrGetActivePlayer
This commit is contained in:
parent
aa2f51976f
commit
766d849d79
@ -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;
|
||||
}
|
||||
|
||||
@ -4,6 +4,8 @@
|
||||
#include "object/client/ClntObjMgr.hpp"
|
||||
#include <cstdint>
|
||||
|
||||
uint64_t ClntObjMgrGetActivePlayer();
|
||||
|
||||
ClntObjMgr* ClntObjMgrGetCurrent();
|
||||
|
||||
uint32_t ClntObjMgrGetMapID();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user