* Reserves cargo for loading onto the vehicle. * @param max_move Maximum amount of cargo to reserve. * @param dest VehicleCargoList to reserve for. * @param next_station Next station(s) the loading vehicle will visit. * @param current_tile Current tile the cargo handling is happening on. * @return Amount of cargo actually reserved. */
| 815 | * @return Amount of cargo actually reserved. |
| 816 | */ |
| 817 | uint StationCargoList::Reserve(uint max_move, VehicleCargoList *dest, std::span<const StationID> next_station, TileIndex current_tile) |
| 818 | { |
| 819 | return this->ShiftCargo(CargoReservation(this, dest, max_move, current_tile), next_station, true); |
| 820 | } |
| 821 | |
| 822 | /** |
| 823 | * Loads cargo onto a vehicle. If the vehicle has reserved cargo load that. |
no test coverage detected