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

Function exportConstruction

src/OpenLoco/src/S5/S5GameState.cpp:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace OpenLoco::S5
7{
8 static S5::Construction exportConstruction(const OpenLoco::Scenario::Construction& src)
9 {
10 S5::Construction dst{};
11 std::ranges::copy(src.signals, dst.signals);
12 std::ranges::copy(src.bridges, dst.bridges);
13 std::ranges::copy(src.trainStations, dst.trainStations);
14 std::ranges::copy(src.trackMods, dst.trackMods);
15 std::ranges::copy(src.var_17A, dst.var_17A);
16 std::ranges::copy(src.roadStations, dst.roadStations);
17 std::ranges::copy(src.roadMods, dst.roadMods);
18 return dst;
19 }
20
21 static S5::GeneralState exportGeneralState(const OpenLoco::GameState& src)
22 {

Callers 1

exportGeneralStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected