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

Method GetPackableObjects

src/openrct2/object/ObjectManager.cpp:282–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 }
281
282 std::vector<const ObjectRepositoryItem*> GetPackableObjects() override
283 {
284 std::vector<const ObjectRepositoryItem*> objects;
285 size_t numObjects = _objectRepository.GetNumObjects();
286 for (size_t i = 0; i < numObjects; i++)
287 {
288 const ObjectRepositoryItem* item = &_objectRepository.GetObjects()[i];
289 if (item->LoadedObject != nullptr && IsObjectCustom(item))
290 {
291 objects.push_back(item);
292 }
293 }
294 return objects;
295 }
296
297 static StringId GetObjectSourceGameString(const ObjectSourceGame sourceGame)
298 {

Callers 6

ExportSaveFunction · 0.80
StartRecordingMethod · 0.80
ScenarioSaveFunction · 0.80
ServerSendMapMethod · 0.80
ServerClientJoinedMethod · 0.80
OnCrashFunction · 0.80

Calls 4

IsObjectCustomFunction · 0.85
GetNumObjectsMethod · 0.80
GetObjectsMethod · 0.80
push_backMethod · 0.45

Tested by 1

ExportSaveFunction · 0.64