MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / findObjectInIndex

Function findObjectInIndex

src/OpenLoco/src/Objects/ObjectIndex.cpp:604–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602 }
603
604 std::optional<ObjectIndexEntry> findObjectInIndex(const ObjectHeader& objectHeader)
605 {
606 auto res = internalFindObjectInIndex(objectHeader);
607 if (!res.has_value())
608 {
609 return std::nullopt;
610 }
611 return res->object;
612 }
613
614 const ObjectIndexEntry& getObjectInIndex(ObjectIndexId index)
615 {

Callers 4

drawFunction · 0.85
isObjectInstalledFunction · 0.85
findAndPreLoadObjectFunction · 0.85

Calls 1

Tested by

no test coverage detected