mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(object): add ClntObjMgrPop
This commit is contained in:
parent
0e685d6fbd
commit
02961c3511
@ -16,6 +16,15 @@ uint32_t ClntObjMgrGetMapID() {
|
||||
return s_curMgr->m_mapID;
|
||||
}
|
||||
|
||||
void ClntObjMgrPop() {
|
||||
if (!s_savMgr) {
|
||||
return;
|
||||
}
|
||||
|
||||
s_curMgr = s_savMgr;
|
||||
s_savMgr = nullptr;
|
||||
}
|
||||
|
||||
void ClntObjMgrPush(ClntObjMgr* mgr) {
|
||||
if (s_savMgr || mgr == s_curMgr) {
|
||||
return;
|
||||
|
||||
@ -6,6 +6,8 @@
|
||||
|
||||
uint32_t ClntObjMgrGetMapID();
|
||||
|
||||
void ClntObjMgrPop();
|
||||
|
||||
void ClntObjMgrPush(ClntObjMgr* mgr);
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user