Add: [Script] ScriptVehicleList_Waypoint (#13456)
Creates a list of vehicles that have orders to a given waypoint.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user