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

Method Clear

src/GameObjects/GameObject.cpp:360–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void CGameObject::Clear()
361{
362 if (!Empty())
363 {
364 CGameObject *obj = (CGameObject *)m_Items;
365 while (obj != nullptr)
366 {
367 CGameObject *next = (CGameObject *)obj->m_Next;
368 g_World->RemoveObject(obj);
369 obj = next;
370 }
371 m_Items = nullptr;
372 }
373}
374
375void CGameObject::ClearUnequipped()
376{

Callers 4

ClearContainerMethod · 0.45
UpdateContainedItemMethod · 0.45
~CGameCharacterMethod · 0.45
CloseBankMethod · 0.45

Calls 2

EmptyFunction · 0.85
RemoveObjectMethod · 0.80

Tested by

no test coverage detected