summaryrefslogtreecommitdiff
path: root/src/script/api/script_airport.hpp
diff options
context:
space:
mode:
authorSamu <dj_samu@hotmail.com>2018-09-14 13:03:52 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2018-11-01 18:06:08 +0100
commit1e68b9b3e6487c8c95c5d8dac89c04ea06d1d9b5 (patch)
treeef4e425dd7241c0b230feba91dfba9b4267157c2 /src/script/api/script_airport.hpp
parent4703cd433d18c8c6d144a0e279891cf039add6e1 (diff)
downloadopenttd-1e68b9b3e6487c8c95c5d8dac89c04ea06d1d9b5.tar.xz
Add: AI/GS GetMonthlyMaintenanceCost (#6897)
API addition which allows AI/GS scripts to retrieve the monthly maintenance cost of an airport type.
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 e4c0a217d..6073a2bdd 100644
--- a/src/script/api/script_airport.hpp
+++ b/src/script/api/script_airport.hpp
@@ -201,6 +201,14 @@ public:
* @return Maintenance cost factor of the airport type.
*/
static uint16 GetMaintenanceCostFactor(AirportType type);
+
+ /**
+ * Get the monthly maintenance cost of an airport type.
+ * @param type The airport type to get the monthly maintenance cost of.
+ * @pre IsAirportInformationAvailable(type)
+ * @return Monthly maintenance cost of the airport type.
+ */
+ static Money GetMonthlyMaintenanceCost(AirportType type);
};
#endif /* SCRIPT_AIRPORT_HPP */