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

Function exportVehicleCargo

src/OpenLoco/src/S5/S5Entity.cpp:313–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 }
312
313 static VehicleCargo exportVehicleCargo(const OpenLoco::Vehicles::VehicleCargo& src)
314 {
315 VehicleCargo dst{};
316 dst.acceptedTypes = src.acceptedTypes;
317 dst.type = src.type;
318 dst.maxQty = src.maxQty;
319 dst.townFrom = enumValue(src.townFrom);
320 dst.numDays = src.numDays;
321 dst.qty = src.qty;
322 return dst;
323 }
324
325 static Entity exportVehicleBogie(const OpenLoco::Vehicles::VehicleBogie& src)
326 {

Callers 2

exportVehicleBogieFunction · 0.85
exportVehicleBodyFunction · 0.85

Calls 1

enumValueFunction · 0.85

Tested by

no test coverage detected