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

Function GetKeyItemCount

TombEngine/Game/pickup/pickup_key_items.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105std::optional<int> GetKeyItemCount(LaraInfo& lara, GAME_OBJECT_ID objectID)
106{
107 // kick off the recursion starting at the last element
108 auto result = GetArrayInternal<nInfos - 1>(lara, objectID);
109 if (result.first)
110 return result.first[result.second];
111
112 return std::nullopt;
113}

Callers 1

GetInventoryCountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected