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

Method Load

src/saveload/town_sl.cpp:215–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 }
214
215 void Load(Town *t) const override
216 {
217 size_t length = IsSavegameVersionBefore(SLV_SAVELOAD_LIST_LENGTH) ? static_cast<size_t>(TAE_END) : SlGetStructListLength(TAE_END);
218 for (size_t i = 0; i < length; i++) {
219 SlObject(&t->received[i], this->GetLoadDescription());
220 }
221 }
222};
223
224class SlTownAcceptanceMatrix : public DefaultSaveLoadHandler<SlTownAcceptanceMatrix, Town> {

Callers

nothing calls this directly

Calls 4

IsSavegameVersionBeforeFunction · 0.85
SlGetStructListLengthFunction · 0.85
SlObjectFunction · 0.85
GetLoadDescriptionMethod · 0.80

Tested by

no test coverage detected