mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(object): partially implement GetUpdateObject
This commit is contained in:
parent
f722040986
commit
e29b584da3
@ -10,6 +10,7 @@
|
||||
#include "object/client/CGUnit_C.hpp"
|
||||
#include "object/client/Mirror.hpp"
|
||||
#include "object/client/ObjMgr.hpp"
|
||||
#include "object/client/Util.hpp"
|
||||
#include "util/GUID.hpp"
|
||||
#include "util/Unimplemented.hpp"
|
||||
#include "util/Zlib.hpp"
|
||||
@ -28,7 +29,18 @@ enum UPDATE_TYPE {
|
||||
};
|
||||
|
||||
CGObject_C* GetUpdateObject(WOWGUID guid, int32_t* reenabled) {
|
||||
WHOA_UNIMPLEMENTED(nullptr);
|
||||
*reenabled = false;
|
||||
|
||||
auto activeObject = FindActiveObject(guid);
|
||||
|
||||
if (activeObject) {
|
||||
activeObject->SetDisablePending(false);
|
||||
|
||||
return activeObject;
|
||||
}
|
||||
|
||||
// TODO handle reenabling object
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void UpdateOutOfRangeObjects(CDataStore* msg) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user