MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / FindItem

Function FindItem

TombEngine/Game/items.cpp:853–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853ItemInfo* FindItem(GAME_OBJECT_ID objectID)
854{
855 for (int i = 0; i < g_Level.NumItems; i++)
856 {
857 auto* item = &g_Level.Items[i];
858
859 if (item->ObjectNumber == objectID)
860 return item;
861 }
862
863 return nullptr;
864}
865
866int FindItem(ItemInfo* item)
867{

Callers 3

ObeliskControlFunction · 0.85
InitializePlayerVehicleFunction · 0.85
lara_helpers.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected