| 184 | } |
| 185 | |
| 186 | void Load() const override |
| 187 | { |
| 188 | const std::vector<SaveLoad> slt = SlCompatTableHeader(_engine_id_mapping_desc, _engine_id_mapping_sl_compat); |
| 189 | |
| 190 | _engine_mngr.mappings = {}; |
| 191 | |
| 192 | int index; |
| 193 | while ((index = SlIterateArray()) != -1) { |
| 194 | EngineIDMapping eid; |
| 195 | SlObject(&eid, slt); |
| 196 | _engine_mngr.SetID(eid.type, eid.internal_id, eid.grfid, eid.substitute_id, static_cast<EngineID>(index)); |
| 197 | } |
| 198 | } |
| 199 | }; |
| 200 | |
| 201 | static const EIDSChunkHandler EIDS; |
nothing calls this directly
no test coverage detected