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

Function importConstruction

src/OpenLoco/src/S5/S5GameState.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 }
212
213 static OpenLoco::Scenario::Construction importConstruction(const S5::Construction& src)
214 {
215 OpenLoco::Scenario::Construction dst{};
216 std::ranges::copy(src.signals, dst.signals);
217 std::ranges::copy(src.bridges, dst.bridges);
218 std::ranges::copy(src.trainStations, dst.trainStations);
219 std::ranges::copy(src.trackMods, dst.trackMods);
220 std::ranges::copy(src.var_17A, dst.var_17A);
221 std::ranges::copy(src.roadStations, dst.roadStations);
222 std::ranges::copy(src.roadMods, dst.roadMods);
223
224 return dst;
225 }
226
227 static void importGeneralState(OpenLoco::GameState& dst, const S5::GeneralState& src)
228 {

Callers 1

importGeneralStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected