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

Method GetTopObject

src/GameObjects/GameObject.cpp:615–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615CGameObject *CGameObject::GetTopObject()
616{
617 CGameObject *obj = this;
618 while (obj->Container != 0xFFFFFFFF)
619 {
620 obj = g_World->FindWorldObject(obj->Container);
621 }
622 return obj;
623}
624
625CGameItem *CGameObject::FindLayer(int layer) const
626{

Callers 8

CreateTextMessageMethod · 0.80
UpdateItemInContainerMethod · 0.80
UpdateMethod · 0.80
PacketManager.cppFile · 0.80
PACKET_HANDLERFunction · 0.80
QFORFunction · 0.80
AddEffectMethod · 0.80

Calls 1

FindWorldObjectMethod · 0.80

Tested by

no test coverage detected