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

Method LoadTempObject

src/openrct2/object/ObjectManager.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 std::unique_ptr<Object> LoadTempObject(std::string_view id, bool loadImages) override
168 {
169 const ObjectRepositoryItem* ori = _objectRepository.FindObject(id);
170 if (ori == nullptr)
171 {
172 LOG_ERROR("Object '%s' not found in repository.", std::string{ id }.c_str());
173 return nullptr;
174 }
175
176 auto object = _objectRepository.LoadObject(ori, loadImages);
177 return object;
178 }
179
180 Object* LoadObject(std::string_view identifier) override
181 {

Callers 4

PopulateIndexEntryMethod · 0.80
PopulateIndexEntryMethod · 0.80
LoadPreviewMethod · 0.80

Calls 2

FindObjectMethod · 0.80
LoadObjectMethod · 0.45

Tested by

no test coverage detected