| 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 | { |