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

Function exportRecords

src/OpenLoco/src/S5/S5Company.cpp:279–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 S5::Records exportRecords(const CompanyManager::Records& src)
280 {
281 S5::Records dst{};
282 for (auto i = 0; i < 3; i++)
283 {
284 dst.speed[i] = src.speed[i].getRaw();
285 dst.company[i] = enumValue(src.company[i]);
286 dst.date[i] = src.date[i];
287 }
288 return dst;
289 }
290
291 OpenLoco::CompanyManager::Records importRecords(const S5::Records& src)
292 {

Callers 1

exportGeneralStateFunction · 0.85

Calls 2

enumValueFunction · 0.85
getRawMethod · 0.45

Tested by

no test coverage detected