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

Function exportCargoStats

src/OpenLoco/src/S5/S5Station.cpp:7–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

exportStationFunction · 0.85

Calls 2

enumValueFunction · 0.85
getRawMethod · 0.45

Tested by

no test coverage detected