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

Method LoadObjects

src/openrct2/object/ObjectManager.cpp:209–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 void LoadObjects(const ObjectList& objectList, const bool reportProgress) override
210 {
211 // Find all the required objects
212 auto requiredObjects = GetRequiredObjects(objectList);
213
214 // Load the required objects
215 LoadObjects(requiredObjects, reportProgress);
216
217 // Update indices.
218 UpdateSceneryGroupIndexes();
219 ResetTypeToRideEntryIndexMap();
220 }
221
222 void UnloadObjects(const std::vector<ObjectEntryDescriptor>& entries) override
223 {

Callers 11

TEST_FFunction · 0.80
ImportS6Function · 0.80
ImportParkFunction · 0.80
localStartGameFunction · 0.80
LoadReplayDataMapMethod · 0.80
LoadParkFromStreamMethod · 0.80
HandleCommandConvertFunction · 0.80
LoadMapMethod · 0.80
LoadParkFromFileMethod · 0.80
LoadParkFromStreamMethod · 0.80
loadMethod · 0.80

Calls 15

ObjectLoadExceptionClass · 0.85
getAllObjectTypesFunction · 0.85
IsIntransientObjectTypeFunction · 0.85
RegisterLoadedObjectMethod · 0.80
AddTaskMethod · 0.80
JoinMethod · 0.80
GetObjectTypeMethod · 0.80
getMethod · 0.65
endMethod · 0.65
loadMethod · 0.65
clearMethod · 0.65

Tested by 4

TEST_FFunction · 0.64
ImportS6Function · 0.64
ImportParkFunction · 0.64
localStartGameFunction · 0.64