feat(object): implement UpdateInRangeObjects

This commit is contained in:
fallenoak 2026-01-13 21:36:53 -06:00
parent ae911d94ad
commit 72d5247563
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -211,7 +211,22 @@ int32_t CreateObject(CDataStore* msg, uint32_t time) {
}
void UpdateInRangeObjects(CDataStore* msg) {
WHOA_UNIMPLEMENTED();
uint32_t count;
msg->Get(count);
for (int32_t i = 0; i < count; i++) {
SmartGUID guid;
*msg >> guid;
if (guid != ClntObjMgrGetActivePlayer()) {
int32_t reenabled;
auto object = GetUpdateObject(guid, &reenabled);
if (object && reenabled) {
object->Reenable();
}
}
}
}
int32_t ObjectUpdateFirstPass(CDataStore* msg, uint32_t time, uint32_t updateIdx, uint32_t updateCount) {