MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / FindObject

Method FindObject

src/openrct2/object/ObjectRepository.cpp:226–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 }
225
226 const ObjectRepositoryItem* FindObject(std::string_view identifier) const override final
227 {
228 auto kvp = _newItemMap.find(identifier);
229 if (kvp != _newItemMap.end())
230 {
231 return &_items[kvp->second];
232 }
233 return nullptr;
234 }
235
236 const ObjectRepositoryItem* FindObject(const RCTObjectEntry* objectEntry) const override final
237 {

Callers 15

HandleObjectsInfoFunction · 0.80
ConsoleCommandLoadObjectFunction · 0.80
installedObject_getMethod · 0.80
getInstalledObjectMethod · 0.80
loadMethod · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.65

Tested by

no test coverage detected