Add: [Script] ScriptVehicleList_Waypoint (#13456)

Creates a list of vehicles that have orders to a given waypoint.
This commit is contained in:
SamuXarick
2025-05-19 13:48:17 +01:00
committed by GitHub
parent 1b0fd0e6fd
commit ad3a34e9ef
4 changed files with 32 additions and 0 deletions

View File

@@ -79,6 +79,20 @@ public:
#endif /* DOXYGEN_API */
};
/**
* Creates a list of vehicles that have orders to a given waypoint.
* @api ai game
* @ingroup ScriptList
*/
class ScriptVehicleList_Waypoint : public ScriptList {
public:
/**
* @param waypoint_id The waypoint to get the list of vehicles from, which have orders to it.
* @pre ScriptWaypoint::IsValidWaypoint(waypoint_id)
*/
ScriptVehicleList_Waypoint(StationID waypoint_id);
};
/**
* Creates a list of vehicles that have orders to a given depot.
* The list is created with a tile. If the tile is part of an airport all