| 5 | namespace OpenLoco::S5 |
| 6 | { |
| 7 | static S5::StationCargoStats exportCargoStats(const OpenLoco::StationCargoStats& src) |
| 8 | { |
| 9 | S5::StationCargoStats dst{}; |
| 10 | dst.quantity = src.quantity; |
| 11 | dst.origin = enumValue(src.origin); |
| 12 | dst.flags = enumValue(src.flags); |
| 13 | dst.age = src.age; |
| 14 | dst.rating = src.rating; |
| 15 | dst.enrouteAge = src.enrouteAge; |
| 16 | dst.vehicleSpeed = src.vehicleSpeed.getRaw(); |
| 17 | dst.vehicleAge = src.vehicleAge; |
| 18 | dst.industryId = enumValue(src.industryId); |
| 19 | dst.densityPerTile = src.densityPerTile; |
| 20 | return dst; |
| 21 | } |
| 22 | |
| 23 | S5::Station exportStation(const OpenLoco::Station& src) |
| 24 | { |
no test coverage detected