MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Load

Method Load

src/saveload/saveload.h:1408–1418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406 }
1407
1408 void Load(TObject *object) const override
1409 {
1410 auto &vector = this->GetVector(object);
1411 size_t count = this->GetLength();
1412
1413 vector.reserve(count);
1414 while (count-- > 0) {
1415 auto &item = vector.emplace_back();
1416 SlObject(&item, this->GetLoadDescription());
1417 }
1418 }
1419};
1420
1421#endif /* SAVELOAD_H */

Callers

nothing calls this directly

Calls 4

GetLengthMethod · 0.95
SlObjectFunction · 0.85
reserveMethod · 0.80
GetLoadDescriptionMethod · 0.80

Tested by

no test coverage detected