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

Method GetLength

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

* Get number of elements to load into vector. * @returns Number of elements to load into the vector. * @note This is only overridden if the number of elements comes from a different location due to savegame changes. */

Source from the content-addressed store, hash-verified

1394 * @note This is only overridden if the number of elements comes from a different location due to savegame changes.
1395 */
1396 virtual size_t GetLength() const { return SlGetStructListLength(MAX_LENGTH); }
1397
1398 void Save(TObject *object) const override
1399 {

Callers 1

LoadMethod · 0.95

Calls 1

SlGetStructListLengthFunction · 0.85

Tested by

no test coverage detected