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

Method Load

src/saveload/labelmaps_sl.cpp:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 void Load() const override
57 {
58 const std::vector<SaveLoad> slt = SlCompatTableHeader(description, _label_object_sl_compat);
59
60 _railtype_list.reserve(RAILTYPE_END);
61
62 LabelObject<RailTypeLabel> lo;
63
64 while (SlIterateArray() != -1) {
65 SlObject(&lo, slt);
66 _railtype_list.push_back(lo);
67 }
68 }
69};
70
71struct ROTTChunkHandler : ChunkHandler {

Callers

nothing calls this directly

Calls 5

SlCompatTableHeaderFunction · 0.85
SlIterateArrayFunction · 0.85
SlObjectFunction · 0.85
reserveMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected