mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
feat(object): implement UpdateInRangeObjects
This commit is contained in:
parent
ae911d94ad
commit
72d5247563
@ -211,7 +211,22 @@ int32_t CreateObject(CDataStore* msg, uint32_t time) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void UpdateInRangeObjects(CDataStore* msg) {
|
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) {
|
int32_t ObjectUpdateFirstPass(CDataStore* msg, uint32_t time, uint32_t updateIdx, uint32_t updateCount) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user