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

Function importVehicleCargo

src/OpenLoco/src/S5/S5Entity.cpp:725–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723 }
724
725 static OpenLoco::Vehicles::VehicleCargo importVehicleCargo(const S5::VehicleCargo& src)
726 {
727 OpenLoco::Vehicles::VehicleCargo dst{};
728 dst.acceptedTypes = src.acceptedTypes;
729 dst.type = src.type;
730 dst.maxQty = src.maxQty;
731 dst.townFrom = static_cast<StationId>(src.townFrom);
732 dst.numDays = src.numDays;
733 dst.qty = src.qty;
734 return dst;
735 }
736
737 static void importVehicleBogie(OpenLoco::Vehicles::VehicleBogie& dst, const S5::VehicleBogie& src)
738 {

Callers 2

importVehicleBogieFunction · 0.85
importVehicleBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected