MCPcopy Create free account
hub / github.com/crossuo/crossuo / ReplaceObject

Method ReplaceObject

src/GameObjects/GameWorld.cpp:408–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408void CGameWorld::ReplaceObject(CGameObject *obj, uint32_t newSerial)
409{
410 m_Map[obj->Serial] = nullptr;
411 m_Map.erase(obj->Serial);
412
413 QFOR(item, obj->m_Items, CGameObject *)
414 item->Container = newSerial;
415
416 m_Map[newSerial] = obj;
417 obj->Serial = newSerial;
418}
419
420void CGameWorld::RemoveObject(CGameObject *obj)
421{

Callers 1

PACKET_HANDLERFunction · 0.80

Calls 2

eraseMethod · 0.80
QFORFunction · 0.70

Tested by

no test coverage detected