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

Function ObjectEntryGetChunk

src/openrct2/object/ObjectList.cpp:244–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 }
243
244 void* ObjectEntryGetChunk(ObjectType objectType, ObjectEntryIndex index)
245 {
246 auto& objectMgr = GetContext()->GetObjectManager();
247 auto* object = objectMgr.GetLoadedObject(objectType, index);
248 if (object != nullptr)
249 {
250 return object->GetLegacyData();
251 }
252 return nullptr;
253 }
254
255 const Object* ObjectEntryGetObject(ObjectType objectType, ObjectEntryIndex index)
256 {

Callers 2

ManageTracksMethod · 0.85
onDrawMethod · 0.85

Calls 3

GetContextFunction · 0.85
GetLoadedObjectMethod · 0.45
GetLegacyDataMethod · 0.45

Tested by

no test coverage detected