Change: [Script] ScriptVehicleList_Station accepts an optional VehicleType parameter (#14260)

This commit is contained in:
Loïc Guilloux
2025-05-13 16:41:23 +02:00
committed by GitHub
parent 87fa1e41d5
commit c16d5f3a8d
6 changed files with 71 additions and 5 deletions

View File

@@ -58,11 +58,25 @@ public:
*/
class ScriptVehicleList_Station : public ScriptList {
public:
#ifdef DOXYGEN_API
/**
* @param station_id The station to get the list of vehicles from, which have orders to it.
* @pre ScriptBaseStation::IsValidBaseStation(station_id)
*/
ScriptVehicleList_Station(StationID station_id);
/**
* @param station_id The station to get the list of vehicles from, which have orders to it.
* @param vehicle_type The VehicleType to get the list of vehicles for.
* @pre ScriptBaseStation::IsValidBaseStation(station_id)
*/
ScriptVehicleList_Station(StationID station_id, ScriptVehicle::VehicleType vehicle_type);
#else
/**
* The constructor wrapper from Squirrel.
*/
ScriptVehicleList_Station(HSQUIRRELVM vm);
#endif /* DOXYGEN_API */
};
/**