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

Function exportIncomeStats

src/OpenLoco/src/S5/S5Entity.cpp:227–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 }
226
227 static IncomeStats exportIncomeStats(const OpenLoco::Vehicles::IncomeStats& src)
228 {
229 IncomeStats dst{};
230 dst.day = src.day;
231 for (size_t i = 0; i < std::size(src.cargoTypes); i++)
232 {
233 dst.cargoTypes[i] = src.cargoTypes[i];
234 dst.cargoQtys[i] = src.cargoQtys[i];
235 dst.cargoDistances[i] = src.cargoDistances[i];
236 dst.cargoAges[i] = src.cargoAges[i];
237 dst.cargoProfits[i] = src.cargoProfits[i];
238 }
239 return dst;
240 }
241
242 static Entity exportVehicle1(const OpenLoco::Vehicles::Vehicle1& src)
243 {

Callers 1

exportVehicle1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected