diff options
author | frosch <frosch@openttd.org> | 2009-03-26 19:45:45 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-03-26 19:45:45 +0000 |
commit | 44351cdc57f470e7fc1213e4b0b2f6b1f42e71ac (patch) | |
tree | 6d5983772ba02edc87bbe4128a094205c7955ba1 /src/ai/api/ai_road.hpp.sq | |
parent | 19b47c1e89ea7923fa0059075aee6ce5d60be48a (diff) | |
download | openttd-44351cdc57f470e7fc1213e4b0b2f6b1f42e71ac.tar.xz |
(svn r15860) -Add: AIRoad::GetRoadVehicleTypeForCargo() to tell whether a certain cargo needs a bus- or a truckstop.
Diffstat (limited to 'src/ai/api/ai_road.hpp.sq')
-rw-r--r-- | src/ai/api/ai_road.hpp.sq | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_road.hpp.sq b/src/ai/api/ai_road.hpp.sq index b495dbba7..4c89d93a4 100644 --- a/src/ai/api/ai_road.hpp.sq +++ b/src/ai/api/ai_road.hpp.sq @@ -46,6 +46,7 @@ void SQAIRoad_Register(Squirrel *engine) { AIError::RegisterErrorMapString(AIRoad::ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD, "ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD"); AIError::RegisterErrorMapString(AIRoad::ERR_ROAD_ONE_WAY_ROADS_CANNOT_HAVE_JUNCTIONS, "ERR_ROAD_ONE_WAY_ROADS_CANNOT_HAVE_JUNCTIONS"); + SQAIRoad.DefSQStaticMethod(engine, &AIRoad::GetRoadVehicleTypeForCargo, "GetRoadVehicleTypeForCargo", 2, ".i"); SQAIRoad.DefSQStaticMethod(engine, &AIRoad::IsRoadTile, "IsRoadTile", 2, ".i"); SQAIRoad.DefSQStaticMethod(engine, &AIRoad::IsRoadDepotTile, "IsRoadDepotTile", 2, ".i"); SQAIRoad.DefSQStaticMethod(engine, &AIRoad::IsRoadStationTile, "IsRoadStationTile", 2, ".i"); |