mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-16 19:12:07 +03:00
feat(object): add ClntObjMgrPop
This commit is contained in:
2 files changed
+11
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user