| 5 | namespace OpenLoco::S5 |
| 6 | { |
| 7 | static OpenLoco::Scenario::Objective importObjective(const S5::Objective& src) |
| 8 | { |
| 9 | OpenLoco::Scenario::Objective dst{}; |
| 10 | dst.type = static_cast<OpenLoco::Scenario::ObjectiveType>(src.type); |
| 11 | dst.flags = static_cast<OpenLoco::Scenario::ObjectiveFlags>(src.flags); |
| 12 | dst.companyValue = src.companyValue; |
| 13 | dst.monthlyVehicleProfit = src.monthlyVehicleProfit; |
| 14 | dst.performanceIndex = src.performanceIndex; |
| 15 | dst.deliveredCargoType = src.deliveredCargoType; |
| 16 | dst.deliveredCargoAmount = src.deliveredCargoAmount; |
| 17 | dst.timeLimitYears = src.timeLimitYears; |
| 18 | return dst; |
| 19 | } |
| 20 | |
| 21 | OpenLoco::Scenario::Options importOptions(const S5::Options& src) |
| 22 | { |