MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / importRecords

Function importRecords

src/OpenLoco/src/S5/S5Company.cpp:291–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 }
290
291 OpenLoco::CompanyManager::Records importRecords(const S5::Records& src)
292 {
293 OpenLoco::CompanyManager::Records dst{};
294 for (auto i = 0; i < 3; i++)
295 {
296 dst.speed[i] = Speed16{ src.speed[i] };
297 dst.company[i] = static_cast<CompanyId>(src.company[i]);
298 dst.date[i] = src.date[i];
299 }
300 return dst;
301 }
302
303 OpenLoco::Company importCompany(const S5::Company& src)
304 {

Callers 1

importGeneralStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected