summaryrefslogtreecommitdiff
path: root/src/script/api/script_airport.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_airport.hpp')
-rw-r--r--src/script/api/script_airport.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/script/api/script_airport.hpp b/src/script/api/script_airport.hpp
index d382e643b..6dc2fca50 100644
--- a/src/script/api/script_airport.hpp
+++ b/src/script/api/script_airport.hpp
@@ -193,6 +193,14 @@ public:
* @return The TownID of the town closest to the tile.
*/
static TownID GetNearestTown(TileIndex tile, AirportType type);
+
+ /**
+ * Get the maintenance cost factor of an airport type.
+ * @param type The airport type to get the maintenance factor of.
+ * @pre IsAirportInformationAvailable(type)
+ * @return Maintenance cost factor of the airport type.
+ */
+ static uint16 GetMaintenanceCostFactor(AirportType type);
};
#endif /* SCRIPT_AIRPORT_HPP */