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

Function importObjective

src/OpenLoco/src/S5/S5Options.cpp:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

importOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected